Skip to content

Instantly share code, notes, and snippets.

@apackeer
apackeer / 0_reuse_code.js
Created June 2, 2014 21:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@apackeer
apackeer / .bowerrc
Created September 19, 2013 01:16 — forked from facultymatt/.bowerrc
{
"directory": "components"
}
class people::tommeier {
require ruby
include chrome
include firefox
include iterm2::dev
include sublime_text_2
include caffeine
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...
#!/usr/bin/env bash
set -o errtrace
set -o errexit
facter_version=$1
puppet_version=$2
target_volume=$3
@apackeer
apackeer / .gitignore
Created December 28, 2012 21:56 — forked from eykd/.gitignore
*.pyc
bin/
include/
lib/
@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 / 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: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 / 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/