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
Archives for August 2014
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 […]
New Minecraft Server Dies on Start
Was getting the message The state engine was in incorrect state POSTINITIALIZATION and forced into state SERVER_STOPPED eula.txt in root folder needed to be edited and agreeed to.
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.
Teamspeak 3 Server on Ubuntu
http://blog.bobbyallen.me/2014/01/11/setting-up-teamspeak-3-on-ubuntu-server-12-04-lts/
Batch Import using WP-CLI
Place multiple export files into a single directory, then run the following: # Activate the wordpress importer wp plugin activate wordpress-importer –url=http://localhost/example.com/ # Iterate over all of the import files in a given folder. for f in myfolder/*.xml; do wp import $f –authors=skip –skip=attachment –url=localhost/example.com/; done