Taken from here
Add remonte branch:
git remote add --track master mleung git://github.com/mleung/feather.git
Verify:
git remote
| - Start on single user mode: Hit the Command and S keys at start-up | |
| Wait until the writing stops completely | |
| -At the line, type (after root): /sbin/fsck -fy (space after the k) | |
| Hit the ENTER key | |
| wait until it finishes and says "... appears to be OK" | |
| next, type: /sbin/mount -uw / (space after the t and after the w) |
| @Brett's searches | |
| @Brett's custom searches | |
| go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo) | |
| b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo) | |
| grep https://www.cueup.com/?q=%s&fq=1 Greplin | |
| ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo) | |
| bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo) | |
| gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything) | |
| hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints | |
| mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software) |
| @Brett's searches | |
| @Brett's custom searches | |
| go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo) | |
| b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo) | |
| grep https://www.cueup.com/?q=%s&fq=1 Greplin | |
| ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo) | |
| bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo) | |
| gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything) | |
| hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints | |
| mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software) |
Taken from here
Add remonte branch:
git remote add --track master mleung git://github.com/mleung/feather.git
Verify:
git remote
rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)| # Turn on Notifications | |
| do shell script "defaults -currentHost write com.apple.notificationcenterui doNotDisturb -bool FALSE; defaults -currentHost delete com.apple.notificationcenterui doNotDisturbDate; osascript -e 'quit application \"NotificationCenter\" ' && killall usernoted" -- this set 'Do not disturb' to false in the pref | |
| # Show Desktop | |
| do shell script "defaults write com.apple.finder CreateDesktop -bool true; killall Finder" | |
| # Show all windows | |
| tell application "System Events" | |
| set visible of (every process) to true | |
| end tell |
| #!/bin/bash | |
| # Might as well ask for password up-front, right? | |
| sudo -v | |
| # Keep-alive: update existing sudo time stamp if set, otherwise do nothing. | |
| while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
| # Example: do stuff over the next 30+ mins that requires sudo here or there. | |
| function wait() { |
| function Event(name, params) { | |
| if(typeof name !== 'string') throw new Error('TypeError'); | |
| var _evt; | |
| _evt = document.createEvent('Event'); | |
| _evt.initEvent(name, true, true); | |
| if(typeof params === 'object') | |
| for(var p in params) { | |
| if(!_evt.hasOwnProperty(p)) { | |
| _evt[p] = params[p]; |
| // A loading spinner with 6 dots. | |
| // By @marcedwards from @bjango. | |
| // | |
| // Pretty messy and hacked together, but it works. ¯\_(ツ)_/¯ | |
| // Created using Processing 3.3.7. | |
| float scaler = 0.24 * 4; // Scale the entire design. | |
| float scalerb = 4; // Scale the entire design more. | |
| int frame = 0; |