Abusing Git pre-commit hooks for fun and profit

So, git pre-commit hooks are executable files (yes, you have to declare them as chmod +x - for some reason I forget this every time I write hooks) that are run right before you commit. This type of stuff lets you verify that your application is working, run a few tests, etc before it gets committed. At least the current use case I have (that probably illustrates the point of this particular hook fairly well) is related to this website. So, as I started working on this, I realized that categories are implmented as user plugins which aren’t allowed by github-pages for security reasons. Since all I’m doing is generating a static website, that doesn’t really matter as long as I copy the categories directory to the root, right? Why not automate that shit? ...

January 19, 2012 · 2 min · NextDoorHacker

New Blag - how I learned to stop worrying and love Jekyll

So, I’ve been thinking about this for a while and I finally decided to pull trigger on moving my site fully to github. Let’s see where this goes. Also, I want to give a little intro on how to build a site like this (very bare-bones right now, I’m not very fancy). Originally, nextdoorhacker.com was running on a Linode box that I owned since 2008 (summer of freshman year, oh the times), since I was doing a lot of PHP around then, I ran wordpress on it. Later on, I ran 4legs.org on it along with a wide-assortment of side projects. But wordpress tends to get really annoying to manage if someone isn’t paying you to do it. For me, blogs have always been luxury. So signing in, writing some stuff in a textbox, obsessing over the typeface, getting annoyed over wordpress messing up the format and above all, keeping up with the security patches, new versions becomes work for a blog that probably total of two people ever read. ...

January 16, 2012 · 2 min · NextDoorHacker