Category Archives: Tech

Formatting JSON on the command line

If you ever work with JSON on the command line, try out the json_reformat tool included in yajl-tools package (or install from source). Without json_reformat $ curl http://github.com/api/v2/json/user/show/powdahound {“user”:{“gravatar_id”:”d5894734b9f67c07b276319fdc2e5d88″,”company”:”HipChat”, “name”:”Garret Heaton”,”created_at”:”2009/04/04 08:36:09 -0700″, “location”:”Sunnyvale, CA”,”public_repo_count”:18,”public_gist_count”:67, “blog”:”http://powdahound.com”,”following_count”:8,”id”:70472,”type”:”User”, “permission”:null,”followers_count”:7,”login”:”powdahound”, “email”:”powdahound@gmail.com”}} With json_reformat … Continue reading

Posted in Tech | Tagged , | Leave a comment

Hosting a static site on Amazon S3: ec2instances.info

Amazon added the ability to host static sites on S3 recently so to try it out I made a small site comparing the different types of EC2 instances: www.ec2instances.info. It’s not much of a site but it was the only … Continue reading

Posted in Tech | Tagged , , | Leave a comment

Use git-hooks to make sure you never check in ugly code again

The git-hooks project provides a way to run git hooks locally before you check in your code. This is especially useful if your code is hosted on GitHub because you don’t have access to install server side hooks. From the README: … Continue reading

Posted in Tech | Tagged , , | 6 Comments

Perform a command serially in Capistrano

Capistrano is a great tool for doing software deployments and other system maintenance tasks (although for anything larger, I’d recommend Chef).  One small Capistrano issue I ran into this week is that there’s no way to run a command in … Continue reading

Posted in Tech | Tagged , , , | 3 Comments

Email alerts for PHP errors via SEC

Production systems should always have PHP’s display_errors disabled and log_errors enabled so errors are logged instead of displayed to users. Of course, you’ll want a to be notified when errors happen and that’s where a nifty tool called SEC (Simple … Continue reading

Posted in Tech | Tagged , , , , | Leave a comment