Skip to content

Instantly share code, notes, and snippets.

View RemiAWE's full-sized avatar

Rémi Chanaud RemiAWE

View GitHub Profile
@Alexandredc
Alexandredc / gist:42c74594b6b5644296f4
Created October 19, 2014 17:31
Sync Upstream with Forks
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
@mikemurray
mikemurray / transmit_force_unmount.sh
Last active September 14, 2016 13:47
Kill ALL transmit disk sshfs mounts. Use this when you are unable to eject / mount a sshfs volume because of a disconnect. Don't use this to unmount them normally if you have the option. This could be dangerous, so use at your own risk!
# List all running transmit disk tasks
# ---------------------------------------------------------------------------
ps aux | grep "Transmit Disk"
# Kill All transmit disk tasks.
#
# Potentially dangerious as it could apply to all users on system.
# ---------------------------------------------------------------------------
pkill -9 -f "Transmit Disk"