Skip to content

Instantly share code, notes, and snippets.

View nelsonjchen's full-sized avatar

Nelson Chen nelsonjchen

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SUAutoPushInfoCheckFailed</key>
<string>Can't determine if automatic downloads are enabled due to a network problem</string>
<key>SUAutoPushInfoChecking</key>
<string>Checking if automatic app downloads are enabled…</string>
<key>SUAutoPushInfoNotAdmin</key>
<string>You must be an admin user to enable automatic downloads</string>
/*Twitter Feed Graphic*/
a[href="http://twitter.com/reddit_ucsb"]:after {
width: 68px;
height: 16px;
content: "";
background-image: url(%%twitter%%);
background-position: 0px;
display: inline-block;
cursor: pointer;
position: relative;
/* Credit for stuff from other subreddits
r/Modclub: General inspiration and reference for other subreddits to pull from
r/Music: the origin of the stick out headers?
r/gentlemanboners: Typography for header
r/chrome: moving the userbar up
r/apple: Touchups to subreddit bar
r/baseball: submit links
r/UCSD: Dark Bluish Userbar
r/UCR: Yellow Tabs
r/surfing: Ideas on getting a surfboard back into the header
@nelsonjchen
nelsonjchen / gist:3537173
Created August 30, 2012 18:43
CSS for r/UCSantabarbara
/*Twitter Feed Graphic*/
a[href="http://twitter.com/reddit_ucsb"]:after {
width: 68px;
height: 16px;
content: "";
background-image: url(%%twitter%%);
background-position: 0px;
display: inline-block;
cursor: pointer;
position: relative;
@nelsonjchen
nelsonjchen / pizza.rb
Created October 18, 2012 05:12 — forked from jroesch/pizza.hs
ACM Micro-Challenge 1
require "test/unit"
# Write a function called numPizzas, that takes the number of people present,
# the number of slices in a pizza, and the time of day, and returns the
# number of pizzas to buy (as a whole integer).
#
# Spec:
# Signature: int numPizzas(int numPeople, int slicesPerPizza, int time)
# Time is an int on 24-hour clock (0-23), e.g. 8 = 8am, 14 = 2pm
# 11 = 11am 11pm = 23
#! /bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.

Signing SCALE 11 stuff notes

Sending your signature

Install gpg from wherever. OS X: brew install gpg

Download the keyring from the email to ~/Desktop/

cd ~/Desktop && wget http://www.phildev.net/scale/scale11x-keyring.gpg
11670743
9887C3AA
8086060F
FF02EE69
BD0EEB0D
5BF8E747
6D263974
7AE3FCAD
720E900A
6EF31CD1
@nelsonjchen
nelsonjchen / progress-dump.sh
Created April 5, 2013 17:45
just reminding me how to rsync with bw limits
rsync -avzP -e ssh --progress --bwlimit=$1 nelson-data-dump dreambroker@mindflakes.com:~/dump/
Django==1.2.1
GraphiteReporter==0.1.4
PIL==1.1.7
Pygments==1.5
amqp==1.0.8
anyjson==0.3.3
argparse==1.2.1
bpython==0.11
importlib==1.0.2
kombu==2.5.6