From 0c8d615840b18fd9f9a8137d68da66d8304aa160 Mon Sep 17 00:00:00 2001
From: Sami Samhuri
As much of the Mach-O format as we need is defined in - + asm/macho.rb. The Mach header, Segment commands, sections, relocation tables, and symbol table structs are all there, with a few constants as well.
diff --git a/public/posts/2011/12/static-url-shortener-using-htaccess.html.md b/public/posts/2011/12/static-url-shortener-using-htaccess.html.md index 2de0af8..fe25d44 100644 --- a/public/posts/2011/12/static-url-shortener-using-htaccess.html.md +++ b/public/posts/2011/12/static-url-shortener-using-htaccess.html.md @@ -1,4 +1,4 @@ -This blog is statically generated. A few Ruby and Node.js scripts along with a Makefile and some duct tape hold it all together. All of [samhuri.net is on Github][GH] if you want to take a look. Most of it is quite minimal, sometimes to a fault. Little improvements are made here and there and the most recent one is neat [.htaccess][htaccess-wiki] hack. I want to automatically announce new posts on Twitter so short URLs are in order. +This blog is statically generated. A few Ruby and Node.js scripts along with a Makefile and some duct tape hold it all together. All of [samhuri.net is on Github][GH] if you want to take a look. Most of it is quite minimal, sometimes to a fault. Little improvements are made here and there and the most recent one is a neat [.htaccess][htaccess-wiki] hack. I want to automatically announce new posts on Twitter so short URLs are in order. I try to strike a reasonable balance between writing everything for this site myself and using libraries. A quick look at a few short URL projects was enough to see they weren't what I was looking for. They were all database backed servers. Comments on this blog are served up dynamically but everything else is static and I try to avoid dynamic behaviour when possible. Comments are moving to a more static system sometime. Anyway I registered the domain [s42.ca][s42] and nabbed [an algorithm for creating the short codes from Jonathan Snook][snook] before diving into TextMate to implement my idea.