Skip to content

Instantly share code, notes, and snippets.

View csu's full-sized avatar

Christopher Su csu

  • San Francisco, CA
View GitHub Profile
@csu
csu / me
Last active May 11, 2023 07:56
I'm a software engineer in San Francisco, CA.
@csu
csu / gist:d6b4148930126745b7491acb54b936d7
Created October 9, 2016 22:22
Gets the date of the first commit in a git repo
git log $(git log --reverse --pretty=format:%H|head -1) --date=short --pretty='format:%cd'
git log $(git log --pretty=format:%H|tail -1)
@csu
csu / gist:a3594e9a0f55419f90a0f8ba5c1fc840
Created October 9, 2016 22:07
Gets the year of the first commit in the repo
git log $(git log --reverse --pretty=format:%H|head -1) --date=short --pretty='format:%cd' | cut -c 1-4
:*b0:#d-::
FormatTime, CurrentDateTime,, yyMMdd
SendRaw %CurrentDateTime%
return
python setup.py sdist upload -r pypi
running upload
Submitting dist/steam_market-0.2.0.tar.gz to http://pypi.python.org/pypi
Upload failed (403): Must access using HTTPS instead of HTTP
[distutils]
index-servers =
pypi
pypitest
[pypi]
repository=https://pypi.python.org/pypi
javascript:(function()%7Bdocument.getElementsByClassName('compose-text-container')%5B0%5D.onpaste%20%3D%20function%20(event)%20%7Bvar%20items%20%3D%20(event.clipboardData%20%20%7C%7C%20event.originalEvent.clipboardData).items%3B%2F%2F%20find%20pasted%20image%20among%20pasted%20itemsvar%20blob%3Bfor%20(var%20i%20%3D%200%3B%20i%20%3C%20items.length%3B%20i%2B%2B)%20%7Bif%20(items%5Bi%5D.type.indexOf(%22image%22)%20%3D%3D%3D%200)%20%7Bblob%20%3D%20items%5Bi%5D.getAsFile()%3B%7D%7D%2F%2F%20load%20image%20if%20there%20is%20a%20pasted%20imageif%20(blob%20!%3D%3D%20null)%20%7Bvar%20reader%20%3D%20new%20FileReader()%3Breader.onload%20%3D%20function(event)%20%7Bmedia_el%20%3D%20'%3Cdiv%20class%3D%22compose-media-bar-holder%20padding-al%22%3E'%20%2B'%3Cdiv%20class%3D%22compose-media-bar%22%3E'%20%2B'%3Ca%20class%3D%22js-media-bar-remove%20compose-media-bar-remove%20is-actionable%22%3E'%20%2B'%3Ci%20class%3D%22sprite%20sprite-close%22%3E%3C%2Fi%3E'%20%2B'%3C%2Fa%3E'%20%2B'%3Cimg%20class%3D%22js-media-bar-thumb%20compose-
@csu
csu / gist:d22e60114051a0a182d2
Last active September 13, 2017 19:38
Deploy to Heroku/Dokku without any changes or new commits.
git commit --allow-empty -m "empty commit"
git push heroku master
git reset HEAD~
git push -f heroku master