Throw this in any form field and keep an eye on the console <script>console.log(‘foo’);</script>
Development
Bash scripting Ira Glass
for i in $(seq 1 535); do wget http://audio.thisamericanlife.org/jomamashouse/ismymamashouse/$i.mp3;done
Running Recent WP-CLI on DreamHost
For my own benefit, I’ll keep this link here. So, I followed the above, then created an alias to wpmc to run wp-cli with the newer version. Thanks, Topher
Init Git Submodules After Clone
With version 1.6.5 of Git and later, you can use: git clone –recursive git://github.com/foo/bar.git cd bar For already cloned repos, or older Git versions, just use: git clone git://github.com/foo/bar.git cd bar git submodule update –init –recursive From SO
Specify Branch for Git Pull
[branch “master”] remote = origin merge = refs/heads/master or $ git config branch.master.remote origin $ git config branch.master.merge refs/heads/master This tells Git 2 things: When you’re on the master branch, the default remote is origin. When using git pull on the master branch, with no remote and branch specified, use the default remote (origin) and merge in […]
Get timezone adjusted current date/time in WordPress
WordPress function current_time() uses same args as PHP’s date() and uses timezone from WordPress settings.