Skip to content

Instantly share code, notes, and snippets.

View sup's full-sized avatar
🤠
|・ω・)ノ 。・:*:・゚✧

Charles Lai sup

🤠
|・ω・)ノ 。・:*:・゚✧
View GitHub Profile
[21:12:09.614] Running build in Washington, D.C., USA (East) – iad1
[21:12:09.794] Cloning github.com/sup/automaton (Branch: main, Commit: f0570d5)
[21:12:10.126] Previous build cache not available
[21:12:10.343] Cloning completed: 547.416ms
[21:12:10.696] Running "vercel build"
[21:12:11.145] Vercel CLI 37.1.1
[21:12:11.560] Detected `pnpm-lock.yaml` version 5.4 generated by pnpm@7.x
[21:12:11.589] Installing dependencies...
[21:12:12.148] Lockfile is up to date, resolution step is skipped
[21:12:12.171] Progress: resolved 1, reused 0, downloaded 0, added 0
# if rebasing (or merging your branch *into* master)
git checkout --ours yarn.lock
# if merging master into your feature branch
git checkout --theirs yarn.lock
# look at the changes in package.json
# (make sure they make sense)
git diff --cached package.json
@sup
sup / keybase.md
Created July 29, 2016 04:01
keybase.md

Keybase proof

I hereby claim:

  • I am sup on github.
  • I am charleslai (https://keybase.io/charleslai) on keybase.
  • I have a public key whose fingerprint is FB98 DC1A 49E9 AFE1 C7D5 2AEA A61F F6FD 45F3 0111

To claim this, I am signing this object:

@sup
sup / spacegray-monokai-modified
Last active May 16, 2016 21:42
slightly modified version of monokai for spacegray eighties
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai Gray</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
git revert --no-commit commitSHA..HEAD
git commit
git push
@sup
sup / rename-to-numbers.sh
Created January 6, 2016 02:39
Rename all files in a directory to sequential numbers
find . -name '*.extension' \
| awk 'BEGIN{ a=0 }{ printf "mv \"%s\" %01d.extension\n", $0, a++ }' \
| bash
cat filename | sort | uniq | xargs -n 1 curl -O
@sup
sup / find-sql-injection.sh
Last active January 6, 2016 02:40
find-sql-injection: run py-find-injection on all .py files
find . -name "*.py" | xargs py-find-injection