Skip to content

Instantly share code, notes, and snippets.

View heyitsolivia's full-sized avatar

Olivia Cheng heyitsolivia

View GitHub Profile
@heyitsolivia
heyitsolivia / apps.md
Last active October 10, 2018 18:55
laptop setup

chrome firefox 1password flux rocket slack spectacle spotify tunnelbear sublime

@heyitsolivia
heyitsolivia / ie_gotchas.md
Last active October 7, 2016 14:10
Internet Explorer is the Best
@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
<!-- Inliner Build Version 4380b7741bb759d6cb997545f3add21ad48f010b -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title></title>
</head>
<body style="width: 100% !important; min-width: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; color: #262626; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; text-align: left; line-height: 20px; font-size: 14px; margin: 0; padding: 0;"><style type="text/css">
a:hover {
@heyitsolivia
heyitsolivia / gist:4ab8dfbe7cf1b2a829d0
Created March 18, 2015 14:40
new-monthly-inlined
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width"/>
<style type="text/css">
body {
@heyitsolivia
heyitsolivia / salmon-dip.md
Last active August 29, 2015 14:03
Salmon Cream Cheese Dip

Salmon Cream Cheese Dip

Made for Sunlight's bbq/picnic and loosely based on this recipe

Makes about 2 quarts of dip. Serve with pita chips or bagel chips. Feeds a ton of people (20–30).

Ingredients

2.5 (8oz) cream cheese, softened
3-4 tbsp mayonnaise

1/2 juiced lime or lemon

@heyitsolivia
heyitsolivia / .bash_profile
Created June 18, 2014 05:39
.bash_profile
source $HOME/.prompt
alias ..='cd ..'
alias ...='cd ../..'
@heyitsolivia
heyitsolivia / .prompt
Last active July 22, 2022 02:32
.prompt
# git prompt
# from http://gist.github.com/47364
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "⚡"
}
function git_prompt {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
export PS1='\[\e[1;33m\]\W\[\e[1;36m\]$(git_prompt)\[\e[1;33m\]$\[\e[m\] '
# 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)]/"