WordPress has a habit of storing serialized PHP data in the database. This is fine if you’re working in PHP, but when you migrate a website from one domain to
wget -q --spider URL
Just bookmarking for later – always forget.
We’ve started using Timber recently for a few projects and after having had to go back to regular WordPress themes, it’s safe to say I’ll insists on Timber for all future projects.
If you haven’t tried it out yet or are familiar with Twig in Symfony or another library, I guarantee you’ll love it and won’t look back.
Quick bash script for downloading latest WordPress on a server via ssh.
wget http://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz && rm -rf wordpress/wp-content/ && mv wordpress/* ./ && rm -rf wordpress/ && rm -rf latest.tar.gz
Get your SSH public key – with from IP prepended – ready to add to the authorized_keys file of a server you want to log into without a password.
IP=$(curl -Sfs https://wtfismyip.com/text) && KEY=$(cat ~/.ssh/id_rsa.pub) && echo 'from="'$IP'"' $KEY
Go one step further and add it to the server automatically:
IP=$(curl -Sfs https://wtfismyip.com/text) && KEY=$(cat ~/.ssh/id_rsa.pub) && echo 'from="'$IP'"' $KEY | ssh user@host 'cat >> ~/.ssh/authorized_keys'
I’m determined to start blogging again, let’s see how long it lasts this time.
To start off, here’s a few things that have changed around here.
I got a new job at Vivo Group. Time has flown by, it’ll be 18 months soon.
We got a puppy. My best mate, Maverick.
And we’re expecting… A girl in August. I can’t wait!
So I just launched Secret Santa sack!
It’s still a work a work in progress but it was my attempt at learning AngularJS.
Perhaps WordPress should make that the default tag line….
I had high hopes of bogging regularly but seems I have failed you all. Check back next year.
I think one of the most important things you can do as a developer is learn to use your toolset as best you can. This is a great walkthrough of Sublime Text in which I certainly learnt a thing or two.
- Install Package Control
- Find and learn to use packages that fit your workflow