WWDC 2007 2008 2009 2010 2011 2012 2013 2014 2015
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// reconnect when slack websocket disconnects, taken from multi readme | |
setInterval(() => { | |
if (document.body.innerText.includes('Load new messages.')) | |
window.location.reload(); | |
}, 90000); | |
// find in page, taken from multi readme | |
(() => { | |
const highlightResults = (text, color) => { | |
document.designMode = "on"; // https://stackoverflow.com/a/5887719 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# taken from https://blog.wotw.pro/sort-git-config/ | |
# the options for each property need to be indented using a single tab beforehand... | |
cat ~/.config/git/config | sed 's/ +/\t/g' | awk -F '\t' '$1 { current = $1; print current } $2 { print current "\t" $2}' | sort | awk -F '\t' '!$2 {print $1} $1 && $2 { print "\t" $2 }' | pbcopy |
OlderNewer