Snippet: What Linux Distro is Running?

Quick snippet here for you guys! You're a dev SSHing into various VPS's and you need to know what linux distro you're running.

09/04/2011 | Read the full article ⇒

Avoiding the AJAX New Line Pitfall

Here, my friends, is a JavaScript pitfall that has plagued entire workdays. It's small and simple, but menacing ... you'd do well to heed this warning!

08/31/2011 | Read the full article ⇒

Daily Contact Form Tests with Python and Cron

For most websites, the contact form is the primary means of lead generation. A contact form that fails to email you those leads can potentially devastate your business - no exaggeration. How can you tell whether business is slow or your contact form just isn't working? The answer is to simply test the form by filling it out yourself and seeing if you receive the email. This article aims to automate that process.

08/25/2011 | Read the full article ⇒

GitHub API - Get Latest Commit Details (PHP)

Want to show off the cool open source project you're working on via GitHub? This PHP code snippet will snag your most recently updated repo information and its latest commit message through the GitHub API. All you have to do is plug in your username.

08/22/2011 | Read the full article ⇒

Example .screenrc - A Simple Workflow

GNU screen is a terminal application that lets you run multiple terminals within a single terminal instance. This tool, which has been around for ages, can greatly improve your organization and workflow.

08/20/2011 | Read the full article ⇒

Install PyQuery under Cygwin

08/18/2011 | Read the full article ⇒

Static Classes in JavaScript with Immutable Members

Okay, we know that JavaScript doesn't actually have classes. Prototypes, yada yada, life goes on. So while Static Classes in JavaScript don't exist, let's talk about them anyway!

07/11/2011 | Read the full article ⇒

Remove All Ruby Gems (Ubuntu)

Recently (as in thirty seconds ago) I needed to remove all ruby gems from my system. After searching the interwebs, I came across an article explaining how to remove all ruby gems on Fedora core linux. The snippet adjustment for Ubuntu was easy, just involved remove some quotes and adding sudo. For a detailed explanation on how the command works, check out that article.

06/26/2011 | Read the full article ⇒

Linux Snippet: Run ~/.bash_profile on Startup (GNOME)

If you've edited your ~/.bash_profile to include scripts you'd like executed on start up, you might be surprised when you open up your terminal and those scripts don't execute. By default, ~/.bashrc executes on session start, but ~/.bash_profile doesn't. To execute your ~/.bash_profile on startup, simply append this to your ~/.bashrc

06/26/2011 | Read the full article ⇒

mkdir and cd at the Same Time

Fact: I'm lazy as hell. mkdir x && cd x for whatever reason just seems too long to create a directory and cd into it at the same time.

06/25/2011 | Read the full article ⇒