Skip to content

Instantly share code, notes, and snippets.

Avatar
🏝️
It's nice in Los Angeles

Nelson Chen nelsonjchen

🏝️
It's nice in Los Angeles
View GitHub Profile
View gist:3267613
<?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>
View gist:3399663
/*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;
View gist:3400001
/* 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 Aug 30, 2012
CSS for r/UCSantabarbara
View gist:3537173
/*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 Oct 18, 2012 — forked from jroesch/pizza.hs
ACM Micro-Challenge 1
View pizza.rb
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
View skeleton.sh
#! /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.
View gist:5063129

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
View partykeys.txt
11670743
9887C3AA
8086060F
FF02EE69
BD0EEB0D
5BF8E747
6D263974
7AE3FCAD
720E900A
6EF31CD1
@nelsonjchen
nelsonjchen / progress-dump.sh
Created Apr 5, 2013
just reminding me how to rsync with bw limits
View progress-dump.sh
rsync -avzP -e ssh --progress --bwlimit=$1 nelson-data-dump dreambroker@mindflakes.com:~/dump/
View gist:5321666
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