Category Archives: Linux

3 Find and Replace Commands for the WordPress Underscores Theme

The following three commands are all you need to prepare the awesome _s theme for your next custom themeing project.  They will replace all mention of “_s” in the theme with the name of your theme. In the terminal, go to the _s directory and do: find . -type f -print0 | xargs -0 perl [...]

Also posted in Solutions, Wordpress | Leave a comment

The better way to install LAMP on Ubuntu Karmic 9.10

All this comes from here: https://help.ubuntu.com/community/ApacheMySQLPHP In the teminal: $ sudo tasksel install lamp-server $ sudo apt-get install phpmyadmin $ sudo gedit /etc/apache2/apache2.conf Add the following to the end of this file:  “Include /etc/phpmyadmin/apache.conf” Edit the /etc/php5/apache2/php.ini file and increase the memory_limit value. I used 64M, but that may be overkill.

Also posted in Apache, Solutions, Ubuntu | Tagged , | Leave a comment

Bash aliases: create your own bash shortcuts!

When I’m building websites especially, I have to work with a lot of deeply nested files. But typing cd ~/public_html/websitename/wp-content/themes/themename/ in the terminal every time is giving me carpal tunnel, so I found a better way: First open ~/.barshrc in a text editor and uncomment lines 73 through 75 so they look like this: if [...]

Also posted in Solutions, Ubuntu | Tagged | Leave a comment

Use touch to create empty files

I find myself needing this all the time, especially when I’m doing a tutorial on something nerdy. Create an empty file in the current directory from the command line: $ touch filename

Posted in Linux | Tagged | Leave a comment

VirtualBox on Ubuntu Jaunty for Testing Internet Explorer in Windows

Ed. Note: this method is no longer valid or necessarily a good way to go about things. See here instead: http://likesalmon.net/browser-testing-with-cloned-virtual-machines/ I really loved using VMWare Fusion in OSX to test my webpages in Windows.  The power to just drag a whole Windows installation into the trash when it gets jacked up is intoxicating. Unfortunatly, [...]

Also posted in Software I use, Solutions, Tutorial, Ubuntu, VirtualBox | Tagged , | 2 Comments

lftp is awesome

I’ve been looking for a command line ftp utility that does tab completion and supports sftp. lftp is it! It comes pre-installed on Ubuntu 9.04 Jaunty. change directory: cd change local directory: lcd list directory contents: ls list local directory contents: !ls print local working directory: lpwd Put a file: put filename Put multiple files: [...]

Also posted in Solutions, Ubuntu | Tagged | Leave a comment

A list of HTML Snippets in Gedit

Snippets are extremely useful feature of Gedit that make it usable for TextMate fiends like myself. They work exactly the same as in TM: in Gedit go to Edit -> Preferences -> Plugins and put a check next to “Snippets”. Now open, say, an html file, type body and press TAB. Gedit will automatically fill [...]

Also posted in Gedit, Tutorial, Ubuntu | Tagged | Leave a comment