Skip to content

Instantly share code, notes, and snippets.

View zifnab06's full-sized avatar
🏳️‍🌈

Tom Powell zifnab06

🏳️‍🌈
View GitHub Profile
@zifnab06
zifnab06 / switch_default_branch.py
Created January 12, 2017 04:50 — forked from fourkbomb/switch_default_branch.py
python script using requests to change the default branch for all repos owned by a user/organisation
#!/usr/bin/python
from __future__ import print_function
import requests
BRANCH = 'cm-14.1'
REPO_OWNER = 'orgs/CyanogenMod'
USERNAME = 'your github username'
# generate this here: https://github.com/settings/tokens
# this script only needs the 'repo' scope
// ==UserScript==
// @name Amazon Item Shortener
// @version 1.1b
// @date 2013/05/29
// @description Make links smaller in Amazon
// @creator Omeryl
// @license WTFPL; http://www.wtfpl.net/
// @include http://*.amazon.com/*
// @include https://*.amazon.com/*
// @namespace http://userscripts.org/scripts/show/168947