Skip to content

Instantly share code, notes, and snippets.

View vhuerta's full-sized avatar
🦖
Working from home

Victor Huerta vhuerta

🦖
Working from home
  • Mexico
View GitHub Profile
@vhuerta
vhuerta / gist:ee13ec8712a2a0676cd572dc884a8c40
Last active June 19, 2018 20:36 — forked from stuart11n/gist:9628955
Rename git branch, local and remote
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@vhuerta
vhuerta / restart_bluetooth.sh
Created October 4, 2016 20:03 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport