Command Line SSH stuff

Written by: John | 24th Jun 2015

Adding a WordPress install via the command line:

cd the-path-to-dir

#get WprdPress
wget http://wordpress.org/latest.tar.gz

#Unzip
tar -zxvf latest.tar.gz

#Move all the files up a dir
mv ./* ../

Remove all files from dir

sudo rm -rf /path-to-dir/

Grep

#go to the dir you want to search
cd /path-to-dir/

#Then search
grep -R "The-Phrase" ./

Related Posts

Code

Swipe close for mobile menu

Using Vanilla JS (ish) to add swipe features to mobile views.
Code

Full Width YouTube Videos

Make YouTube videos take the full width of an element while retaining the 16:9 ratio.
Code

CSS Transitions

Easy copy and paste transition css, to enable transitions to all properties.
Code

Handy, dandy WordPress excerpt length function

If you have been using WordPress on multiple projects you must have come up against needing to pull a custom excerpt size? Now there are many ways to do this, eg, you could use this to pull say 80 characters…
Code

Add a masonry blog to WordPress

Masonry post display So you have seen the fancy shmancy "Masonry blog" blog pages used on many modern WordPress sites and thought, that would look great on my site... Well here's how to add a masonry blog to WordPress without…