curl -s http://api.icndb.com/jokes/random/ | python -c 'import sys, json; print "\n\n"+json.load(sys.stdin)["value"]["joke"]+"\n\n"'
git describe origin/master
Warning: If there are multiple tags (local or remote) for the HEAD of origin/master you will get one tag from this command, not a list.
I recommend using the –match parameter to make sure you get the tag you expect:
git describe origin/master --match="v*"
Recently I wanted to enable debug level logging of chef-solo runs in a vagrant box. As it turns out there are two ways to do this and both appear to be undocumented:
Vagrant.configure("2") do |config| # ... config.vm.provision :chef_solo do |chef| chef.arguments = '-l debug' # ... end end
Vagrant.configure("2") do |config| # ... config.vm.provision :chef_solo do |chef| chef.log_level = :debug # ... end end
Adafruit has a great LCD+Keypad kit for the Raspberry Pi with excellent assembly instructions and a nice Python library. I just had to order one along with my first Raspberry Pi.
After it arrived I picked up a 25W Radioshack Pro-Line soldering iron, some 60/40 rosin-core solder and got to work. Luckily I had an old, dead iPod mini to tear apart and practice on. After soldering the first dozen points I felt like I was getting the hang of it. All-in-all I think it came out pretty well.
I just switched to the default WordPress theme Twenty Twelve because my old theme was dated and not mobile-friendly.
Why the default theme?
Most free WordPress themes suck. They are displeasing to the eye, bloated, and just too ”bloggy”. I want a modern, responsive, theme that complements my content. Why is the WordPress community still failing to grasp these concepts? (For the record, “premium” themes also fall short.)
I can’t wait for Ghost. Hopefully its community truly appreciates the concepts that make it a great blogging platform.