Skip to content

Instantly share code, notes, and snippets.

@lhagan
lhagan / CoffeeScript.snippetshl
Created November 30, 2012 20:16
Snippets.app CoffeeScript highlight configuration file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>coffeescript</string>
<key>Name</key>
<string>CoffeeScript</string>
<key>Extension</key>
<string>coffee</string>
@lhagan
lhagan / rss-subscribers.sh
Created October 13, 2012 18:07
Bash script to parse Apache log for a count of RSS subscribers and email it to you
#!/bin/sh -e
# --- Required variables ---
RSS_URI="/rss.xml"
MAIL_TO="your@email.com"
LOG_FILE="/home/$USER/var/log/lighttpd/access.log"
LOG_DATE_FORMAT="%d/%b/%Y"
# --- Optional customization ---
@lhagan
lhagan / gist:998468
Created May 30, 2011 04:49
PIL fails on i386
==> Downloading http://effbot.org/downloads/Imaging-1.1.7.tar.gz
File already downloaded and cached to /Users/admin/Library/Caches/Homebrew
/usr/bin/tar xf /Users/admin/Library/Caches/Homebrew/pil-1.1.7.tar.gz
==> python setup.py build_ext
python setup.py build_ext
running build_ext
--- using frameworks at /System/Library/Frameworks
building '_imaging' extension
creating build
creating build/temp.macosx-10.6-universal-2.6
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: bbcfaeef8bea0046dcd5c818db8b48031c70ab12
HOMEBREW_PREFIX: /Users/<user>/Developer
HOMEBREW_CELLAR: /Users/<user>/Developer/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.9.2-x86_64
CLT: 5.1.0.0.1.1396320587