Skip to content

Instantly share code, notes, and snippets.

@apackeer
apackeer / README.md
Created October 16, 2012 20:57 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@apackeer
apackeer / gist:3930635
Created October 22, 2012 09:32 — forked from pithyless/gist:1208841
Install Python 2.7 (homebrew + pip + virtualenv) on Mac OS X Lion

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@apackeer
apackeer / hidpi.txt
Created November 6, 2012 17:12 — forked from simX/hidpi.txt
Enable HiDPI mode in Mountain Lion w/o Quartz Debug
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES;
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled;
// by the way, you need to logout and log back in for this to take effect. Or at least that's what
// Quartz Debug says. Who knows, maybe it's lying?
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from.
@apackeer
apackeer / gist:4134118
Created November 23, 2012 05:21 — forked from bluesaunders/gist:3170735
CloudApp direct link Alfred extension
curl `pbpaste` | grep 'embed' | sed 's/^.*<a class="embed" href="//' | sed 's/".*$//' | pbcopy
@apackeer
apackeer / .gitignore
Created December 28, 2012 21:56 — forked from eykd/.gitignore
*.pyc
bin/
include/
lib/
#!/usr/bin/env bash
set -o errtrace
set -o errexit
facter_version=$1
puppet_version=$2
target_volume=$3
from blueprint import example
from extensions import mail
from flask import Flask
import settings
def create_app(settings=settings):
ret_val = Flask(__name__)
ret_val.config.from_object(settings)
# initialize extensions...
class people::tommeier {
require ruby
include chrome
include firefox
include iterm2::dev
include sublime_text_2
include caffeine
@apackeer
apackeer / .bowerrc
Created September 19, 2013 01:16 — forked from facultymatt/.bowerrc
{
"directory": "components"
}
@apackeer
apackeer / Amazon_SES.py
Created February 10, 2016 23:56 — forked from seedifferently/Amazon_SES.py
Simple example email wrapper for Boto's SES
"""
Example code for sending emails using boto's SES module. Its main purpose is to
show how easy it is to build multipart text/html emails.
Unfortunately, at this time Amazon's SES doesn't seem to allow you to add
attachments to messages, but if it does in the future it would probably look
like the code that I've commented out below the exception.
The SES module of the Boto package isn't quite finalized yet, but I currently
have this code running using Harry Marr's implementation which is available at: