Skip to content

Instantly share code, notes, and snippets.

@romainl
romainl / _rnb.md
Last active November 24, 2024 19:50
RNB, a Vim colorscheme template
@sneeu
sneeu / fb_test_users.py
Created May 30, 2011 17:19
Generates a bunch of Facebook test users, and dumps the values to stdout as CSV.
import csv
import json
import logging
import urllib2
import urlparse
APP_ID = ''
APP_SECRET = ''
PERMISSIONS = ['user_about_me', 'email', 'user_events', 'rsvp_event', 'offline_access', 'publish_stream']

Let's say you have a <table> of Cats, each of which has a link to a "more info" page:

Willow29 FebNo
NameBornAdopted?
Claudius17 FebYes
#!/bin/bash
# To run do:
# wget https://gist.github.com/raw/850359/ea02e22f021b7ebf2f602811461677ab4a3f2a9e/bootstrap.sh && chmod +x bootstrap.sh && ./bootstrap.sh && source ~/.profile
#
# Based on Amazon EC2 AMI ID ami-ccf405a5 Ubuntu Server 10.10
# This script will:
# * install/config apache2
# * install mod_wsgi
# * install/config nginx