This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>homebrew.mxcl.postgresql</string> | |
<key>ProgramArguments</key> | |
<array> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
headers = { | |
"Authorization": "Bearer %s" % os.getenv('GITHUB_TOKEN') | |
} | |
r = requests.get("https://api.github.com/",headers=headers) | |
for k,v in r.headers.items(): | |
print('%s: %s' % (k,v)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
child-pids() { | |
local childs= | |
childs="$(pgrep -P "$1")" | |
[[ -n "$childs" ]] && while IFS= read child; do | |
pids "$child" | |
done <<< "$childs" | |
[[ $1 != $$ ]] && echo "$1" | |
} | |
child-pids "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Development Status :: 1 - Planning | |
Development Status :: 2 - Pre-Alpha | |
Development Status :: 3 - Alpha | |
Development Status :: 4 - Beta | |
Development Status :: 5 - Production/Stable | |
Development Status :: 6 - Mature | |
Development Status :: 7 - Inactive | |
Environment :: Console | |
Environment :: Console :: Curses | |
Environment :: Console :: Framebuffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import os | |
import requests | |
URL = "https://api.github.com/graphql" | |
headers = { | |
"Accept": "application/vnd.github+json", | |
"Authorization": "Bearer %s" % os.getenv('GITHUB_TOKEN'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webpack --config prod.js --mode=none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ngrok http 8000 | |
yq r ./ngrok.yml tunnels | grep -v ' .*' | sed 's/.$//' #3 names | |
ngrok start -config ./ngrok.yml name | |
# webpack tunnel | |
curl -s http://localhost:4040/api/tunnels | jq '.tunnels[] | select(.name=="webpack")' | jq -r '.public_url' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.git/hooks/post-commit | |
.git/hooks/pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# deprecate and transfer ownership to npm | |
name="$(node -e "console.log(require('./package.json').name)")" | |
npx force-unpublish "$name" 'reason message' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import os | |
import requests | |
NAME = os.getcwd().split('/')[-1] | |
URL = 'https://api.github.com/user/repos' | |
headers = { | |
"Authorization": "Bearer %s" % os.getenv("GITHUB_TOKEN"), | |
} |
NewerOlder