Skip to content

Instantly share code, notes, and snippets.

@alexglue
alexglue / setup github issues labels.sh
Created November 3, 2016 12:14 — forked from rentzsch/setup github issues labels.sh
Shell script to set up a GitHub Project's Issues' Labels as described in <http://rentzsch.tumblr.com/post/252878320/my-lighthouse-ticket-settings-with-colors>. WARNING: script assumes a newish project that hasn't really used labels yet. It deletes all default labels, which means DATA LOSS if you've used them for anything.
USER=rentzsch
PASS=mypassword
REPO=mogenerator
# Delete default labels
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question"
@alexglue
alexglue / nginx.conf
Last active August 29, 2015 14:10 — forked from leon/nginx.conf
Symfony2 minimal nginx+php-fpm configuration
upstream symfony2-php-fpm {
server unix:/var/run/php5-fpm.sock;
#server 127.0.0.1:9001;
}
server {
listen 80;
server_name sitename;
root /var/www/$host/web;