Skip to content

Instantly share code, notes, and snippets.

View heyitsolivia's full-sized avatar

Olivia Cheng heyitsolivia

View GitHub Profile
@heyitsolivia
heyitsolivia / restart_bluetooth.sh
Created August 25, 2016 14:29 — 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
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
#
# boosty likes it like that:
# ~/dev/dir[master]$ # clean working directory
# ~/dev/dir[master⚡]$ # dirty working directory
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "⚡"
}
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
# username@Machine ~/dev/dir[master*]$ # dirty working directory
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
### hong sou soy beans w/ pork and eggs
two different cooking methods, three different tastes.
## Ingredients
- two cups dry yellow soy beans soaked for half a day
- 2.5-3.5 lbs pork shoulder blade (anything w/ fat) cut into two-ish inch cubes w/ fat
- 3T light soy
- 2T shao hsing wine
- 2T dark soy (double black, mushroom black, or lucky boy soy)
- 6 steamed hardboiled eggs deshelled