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
#!/bin/bash | |
# Source: http://blog.nonuby.com/blog/2012/07/05/copying-env-vars-from-one-heroku-app-to-another/ | |
# TODO: Create list of ENV vars to send all at once instead of setting and restarting server after each | |
# update | |
set -e | |
sourceApp="$1" | |
targetApp="$2" |
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
USER= | |
PASS= | |
REPO= | |
ACCOUNT=sofetch | |
# Delete default labels | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ACCOUNT/$REPO/labels/bug" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ACCOUNT/$REPO/labels/duplicate" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ACCOUNT/$REPO/labels/enhancement" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ACCOUNT/$REPO/labels/invalid" |
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
javascript: (function () { | |
_bookmarklet = document.createElement('script'); | |
_bookmarklet.id = 'bookmarklet'; | |
if (document.getElementById(_bookmarklet.id)) { | |
yimmelet.init(); | |
} else { | |
_bookmarklet.type = 'text/javascript'; | |
_bookmarklet.src = 'http://assets.domain.com/jsfile.js?x=' + (Math.random()); | |
document.getElementsByTagName('head')[0].appendChild(_bookmarklet); | |
} |