Category Archives: Uncategorized

Ubuntu 10.04 Linux Commands Cheat Sheet

Select box Plugin option is: fourUnzip: sudo apt-get install unzip unzip [file] Tar: tar -cvvf foo.tar [directory] Untar: tar -zxvf yourfile.tar tar -xvfz filename.tar.gz tar -xvzf filename.tar.gz [directory] tar -jxvf filename.tar.bz2 Find: find [dir] -type d|f -iname ‘searchstring’ find / -type -d -iname ‘python’ find ~ -type d -exec chmod +x {} \; UserAdd: useradd <username> [...]

Posted in Uncategorized | Leave a comment

Password protecting nginx

Select box Plugin option is: four Create a Username/Password which will be stored in ‘useraccess’, a file I just made up. htpasswd -b -c useraccess username password -b: allows password in command line rather than prompt -c: creates new passwd file, or rewrites and appends if the file already exists. Now in the nginx config, [...]

Also posted in Development, nginx | Leave a comment

How to get around the Wikipedia blackout.

Select box Plugin option is: fourCopy and paste this into your address bar: javascript:$(“#content”).css(“display”, “block”);$(“#mw-sopaOverlay”).css(“display”,”none”);   To disable blackout on wordpress.com: (this does you no good because the url’s are rewritten) javascript: jQuery(“span”).removeClass(“picture”);jQuery(“.posttitle”).attr(“style”, “background: #FFFFFF ! important”);jQuery(“small span”).attr(“style”, “background: #FFFFFF ! important”);jQuery(“span span”).attr(“style”, “background: #FFFFFF ! important”);jQuery(“span strong”).attr(“style”, “background: #FFFFFF ! important”);

Posted in Uncategorized | Leave a comment