Skip to content

Instantly share code, notes, and snippets.

@apackeer
apackeer / gist:3796932
Created September 27, 2012 22:52 — forked from kennethreitz/gist:3788842
Top 20 Downloaded Projects on PyPI
Top 20 Downloaded Projects on PyPI
==================================
#1 lxml ........ 4890886 downloads
#2 setuptools .. 4243069 downloads
#3 distribute .. 3880163 downloads
#4 zc.buildout . 3090694 downloads
#5 pip ......... 2695166 downloads
#6 boto ........ 2463436 downloads
#7 simplejson .. 2364527 downloads
@apackeer
apackeer / zsh.md
Created October 1, 2012 07:08 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

and then you change your shell to zsh

chsh -s `which zsh`

and then restart

@apackeer
apackeer / osx_lion_rail_setup.md
Created October 2, 2012 20:14 — forked from jpantuso/osx_lion_rail_setup.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL

Setup new Mac with OSX Mountain Lion from scratch

First things first, run a software update...

Install xcode 4

App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.

Install Command Line Tools for Xcode

Downloads for Apple Developers

@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...