Skip to content

Instantly share code, notes, and snippets.

View sfiorini's full-sized avatar

Stefano Fiorini sfiorini

View GitHub Profile
@sfiorini
sfiorini / git.migrate
Created January 12, 2017 14:59 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@sfiorini
sfiorini / Fast tethering.md
Last active May 14, 2022 19:33 — forked from 1mike12/Fast tethering.md
Fast Hotstop Tethering

on android

adb shell

settings put global tether_dun_required 0

with root permsission and running as SU

# makes the build.prop file editable
mount -o rw,remount /

# adds a line in build.props