Install Homebrew
Install a few things with homebrew:
Notice that some packages give you information at the end, read it carefully. To recall that info use brew info
like this: $ brew info postgresql
$ brew install python --universal
#!/usr/bin/env python | |
import os | |
import urllib | |
URL = 'https://raw.github.com/gist/1207150' | |
INSTALL_DIR = '/usr/local/bin/' | |
COMMAND_NAME = 'django_bootstrap' | |
command_path = "%s%s" % (INSTALL_DIR, COMMAND_NAME) | |
fh = urllib.urlopen(URL) |
Install Homebrew
Install a few things with homebrew:
Notice that some packages give you information at the end, read it carefully. To recall that info use brew info
like this: $ brew info postgresql
$ brew install python --universal
$ createdb indextest -T template_postgis | |
$ psql indextest | |
psql (9.1.3) | |
Type "help" for help. | |
indextest=# create table random_points ( | |
indextest(# id integer primary key, | |
indextest(# pt geometry | |
indextest(# ); | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "random_points_pkey" for table "random_points" |
#!/usr/bin/env python | |
import select | |
import time | |
import psycopg2 | |
import psycopg2.extensions | |
import sys | |
def get_cursor(): | |
conn = psycopg2.connect("dbname=pgpubsub") |
import logging | |
from tastypie.authentication import Authentication | |
import oauth2 | |
from oauth_provider.consts import OAUTH_PARAMETERS_NAMES | |
from oauth_provider.store import store | |
from oauth_provider.store import Error as OAuthError | |
from oauth_provider.utils import get_oauth_request | |
from oauth_provider.utils import get_oauth_server |
#!/bin/sh | |
SUBCOMMAND=$0-$1; | |
ORIGINAL_COMMAND=/bin/echo | |
command -v $SUBCOMMAND >/dev/null 2>&1 || { | |
exec $ORIGINAL_COMMAND $*; | |
exit 1; | |
} |
Autore originale: Robert Frost
// ==UserScript== | |
// @name Django Docs Banner removal | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.0.2 | |
// @description Removes the annoying "dev-warning" at the top of the website. | |
// @include https://docs.djangoproject.com/*/dev/ | |
// @copyright 2013+, Jeff Triplett | |
// ==/UserScript== | |
#!/bin/sh | |
# | |
# Originally part of vpnc source code: | |
# © 2005-2012 Maurice Massar, Jörg Mayer, Antonio Borneo et al. | |
# © 2009-2012 David Woodhouse <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. |