Skip to content

Instantly share code, notes, and snippets.

View nelsonjchen's full-sized avatar

Nelson Chen nelsonjchen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am nelsonjchen on github.
  • I am nelsonchen (https://keybase.io/nelsonchen) on keybase.
  • I have a public key whose fingerprint is F5F2 90E6 0377 DA52 3F60 302E 979A E9AB DC3F A1F5

To claim this, I am signing this object:

if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi
local return_code="%(?..%{$fg_bold[red]%}:( %?%{$reset_color%})"
PROMPT='
%{$fg_bold[cyan]%}%n%{$reset_color%}%{$fg[yellow]%}@%{$reset_color%}%{$fg_bold[blue]%}%m%{$reset_color%}:%{${fg_bold[green]}%}%~%{$reset_color%}$(git_prompt_info)
%{${fg[$CARETCOLOR]}%}%# %{${reset_color}%} '
RPS1='${return_code} %W - %@'
@nelsonjchen
nelsonjchen / gist:11299996
Created April 25, 2014 19:13
makensis fails to build on 10.9
nelson@damacy:~/code
% brew --config 04/25/14 - 12:12PM
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 127a89a32fc2f6fe758e8cbf1d74f92e5819c55e
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit haswell
OS X: 10.9.2-x86_64
Xcode: 5.1.1
Installing rake 10.3.1
Installing i18n 0.6.9
Installing json 1.8.1
Installing minitest 5.3.3
Installing thread_safe 0.3.3
Installing tzinfo 1.1.0
Installing activesupport 4.1.0
Installing builder 3.2.2
Installing erubis 2.7.0
Installing actionview 4.1.0
#!/bin/sh
node ~/code/sr/esc-pos-jison/run.js $1
@nelsonjchen
nelsonjchen / gist:cc179fffd73b57417a58
Last active September 20, 2015 00:36
$120 bucks a year! Thanks BoA!
TsvHttpData-1.0
http://releases.ubuntu.com/vivid/ubuntu-15.04-desktop-amd64.iso 1150844928 53c869eba8686007239a650d903847fd
http://releases.ubuntu.com/vivid/ubuntu-15.04-desktop-i386.iso 1188855808 6ea04093b767ad6778aa245d53625612
<?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;