Skip to content

Instantly share code, notes, and snippets.

View fourkbomb's full-sized avatar

Simon Shields fourkbomb

View GitHub Profile
setfattr -n user.default /data/user_de/0/com.google.android.ext.services
setfattr -n user.default /data/user_de/0/com.android.providers.telephony
setfattr -n user.default /data/user_de/0/com.google.android.ext.shared
setfattr -n user.default /data/user_de/0/com.android.defcontainer
setfattr -n user.default /data/user_de/0/android
setfattr -n user.default /data/user_de/0/com.android.stk
setfattr -n user.default /data/user_de/0/org.cyanogenmod.cmaudio.service
setfattr -n user.default /data/user_de/0/com.android.providers.settings
setfattr -n user.default /data/user_de/0/com.android.inputdevices
setfattr -n user.default /data/user_de/0/com.android.cellbroadcastreceiver
@fourkbomb
fourkbomb / switch_default_branch.py
Last active February 12, 2018 06:01
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/LineageOS'
USERNAME = 'your github username'
# generate this here: https://github.com/settings/tokens
# this script only needs the 'repo' scope