Author Archives: SteveK

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

Installing MySQLDB on Windows Errors

Select box Plugin option is: fourWell after trying to recompile the entire library, i came across this link. http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python A plethora of precompile python libraries.  What a great resource. Up until i found the precompiled libraries i came across a plethora of errors trying to compile MySQLdb.  Errors I’ve gotten: File setup_windows.py line 7, in [...]

Posted in Python | Leave a comment

Installing NGiNX on Ubuntu 10.04 Lucid Lynx

Select box Plugin option is: four Add the following urls to your sources.list file: deb http://nginx.org/packages/ubuntu/ lucid nginx deb-src http://nginx.org/packages/ubuntu/ lucid nginx Close and save the file.  Then run the following commands: sudo apt-get update sudo apt-get install nginx That simple.  Next comes Configuring NGiNX.

Posted in 10.04 Lucid Lynx, Linux, Ubuntu | Leave a comment

Editing Ubuntu sources.list

Select box Plugin option is: four The sources.list is a text file on a Debian derived Linux distributions.  Aptitude (apt-get) uses this list of servers as locations from which to retrieve software. To add to this you must be logged into a terminal.  Have ready and know how to use a simple terminal text editor such as nano or [...]

Posted in 10.04 Lucid Lynx, Ubuntu | 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, [...]

Posted in Development, nginx, Uncategorized | 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

Free Cloud Hosting for a year? Sign me up!

Select box Plugin option is: fourhttp://www.google.com/search?sourceid=chrome&ie=UTF-8&q=amazon+free+tier

Posted in Linux, Server & Web Site Administration, Web Development & Administration, Web Hosting | Leave a comment

Unknown Terminal Type.

unknown_terminal_type

Select box Plugin option is: fourThe terminal from a Xubuntu desktop isn’t executing any commands. The error is “ ‘unknown’: unknown terminal type. “ Check what terminal is set to by running: “ SET | MORE ”   Then scroll down to where you see the variable:  ” TERM= “.  If “ TERM=unknown “, simply fix this problem by typing:  TERM=xterm

Posted in Linux, Operating Systems, Server & Web Site Administration, Terminal Commands | Leave a comment

WordPress-Smart 404 Plugin

Select box Plugin option is: four A great tool for not showing 404 pages on your wordpress website.  I’ve used this for a couple years now.  I just recently discovered that if you type in a url with a keyword that cannot be found in your posts or pages, this plugin will show a 404 [...]

Posted in Wordpress | Leave a comment

Reveal Password in web browser – Asterisks Revealed

Select box Plugin option is: four Thank you stumble upon, for your weekly interesting emails.  Every email I’ve gotten from StumbleUpon has in fact held my interested.  One of the few sites I actually allow weekly emails from.  Thanks to those emails I’ve found this little handy javascript. javascript:(function(){var s,F,j,f,i; s = “”; F = [...]

Posted in Development, JavaScript, Software, Web Browsers | Leave a comment