Skip to content

Instantly share code, notes, and snippets.

Christopher Su csu

Block or report user

Report or block csu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
csu / gist:d6b4148930126745b7491acb54b936d7
Created Oct 9, 2016
Gets the date of the first commit in a git repo
View gist:d6b4148930126745b7491acb54b936d7
git log $(git log --reverse --pretty=format:%H|head -1) --date=short --pretty='format:%cd'
csu / gist:a3594e9a0f55419f90a0f8ba5c1fc840
Created Oct 9, 2016
Gets the year of the first commit in the repo
View gist:a3594e9a0f55419f90a0f8ba5c1fc840
git log $(git log --reverse --pretty=format:%H|head -1) --date=short --pretty='format:%cd' | cut -c 1-4
View insert_date.ahk
FormatTime, CurrentDateTime,, yyMMdd
SendRaw %CurrentDateTime%
View gist:48d09a828fef8b7edb85a693391c4a41
running upload
Submitting dist/steam_market-0.2.0.tar.gz to
Upload failed (403): Must access using HTTPS instead of HTTP
View .pypirc
index-servers =
View tweetdeck_paste_image.js
csu / gist:d22e60114051a0a182d2
Last active Sep 13, 2017
Deploy to Heroku/Dokku without any changes or new commits.
View gist:d22e60114051a0a182d2
git commit --allow-empty -m "empty commit"
git push heroku master
git reset HEAD~
git push -f heroku master
csu /
Created Jan 21, 2016 — forked from soheilhy/
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for,, and on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

You can’t perform that action at this time.