Skip to content

Instantly share code, notes, and snippets.

Luke Hagan lhagan

Block or report user

Report or block lhagan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lhagan
lhagan / 0_reuse_code.js
Created Nov 26, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View brew config
$ 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
@lhagan
lhagan / CoffeeScript.snippetshl
Created Nov 30, 2012
Snippets.app CoffeeScript highlight configuration file
View CoffeeScript.snippetshl
<?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 Oct 13, 2012 — forked from marcoarment/rss-subscribers.sh
Bash script to parse Apache log for a count of RSS subscribers and email it to you
View rss-subscribers.sh
#!/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
PIL fails on i386
View gist:998468
==> 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
You can’t perform that action at this time.