Skip to content

Instantly share code, notes, and snippets.

@pearkes
pearkes / gist:2209293
Created March 26, 2012 20:07
one line lint install for Sublime
$ git clone git://github.com/lunixbochs/sublimelint.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/sublimelint/
@pearkes
pearkes / VagrantFile
Created March 17, 2012 23:31
Foreman-Ready Vagrant Box with Provisioner. Precise64 and Ruby 1.9.3.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
@pearkes
pearkes / app.py
Created February 19, 2012 16:35
Using url_for() to separate static paths on dev/prod with Flask
...
STATIC_PATH=str(os.environ.get("STATIC_PATH"))
@app.route(STATIC_PATH, build_only=True)
def static_path():
pass
...
@pearkes
pearkes / gist:1621910
Created January 16, 2012 17:27
One-line static site on Heroku
touch index.php; echo 'php_flag engine off' > .htaccess; git init; heroku create -s cedar; git add -A && git commit -m "initial"; git push heroku master;