2014/04/30

Find recursively excluding directories

find . -not -path "*/.svn*"

Copy recursively excluding directories

# will exclude '.svn' from every subdirectory
rsync -av --progress src/ dest/ --exclude '.svn'

2014/04/25

Fedora: rpmfusion

su
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

2014/04/18

Refresh your page automatically

<meta http-equiv="refresh" content="nSeconds;URL">

Maximum z-index

var a = document.body.getElementsByTagName("*"); var zmax = 0; for(q in a){ try{ if(jQuery(a[q]).css("z-index") !== "auto" && zmax < jQuery(a[q]).css("z-index")){ zmax = jQuery(a[q]).css("z-index"); } }catch(e){ } } console.log(zmax);