View I'm an early 🐤
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
🌞 Morning 86 commits ████▊░░░░░░░░░░░░░░░░ 23.0% | |
🌆 Daytime 172 commits █████████▋░░░░░░░░░░░ 46.0% | |
🌃 Evening 92 commits █████▏░░░░░░░░░░░░░░░ 24.6% | |
🌙 Night 24 commits █▎░░░░░░░░░░░░░░░░░░░ 6.4% |
View drop_test_dbs.sh
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
# drop all test databases | |
sql="select datname from pg_database where datname like '%test_%'" | |
dbDelNames=`psql -U postgres -t -A -c "$sql"` | |
for dbName in ${dbDelNames[@]} | |
do | |
echo -e "\n\n[INFO] Drop $dbName.\n" | |
dropdb $dbName | |
done |
View gist:ba8afe0e6e8d0a088dcc49e5f89d7dc8
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
Show all resolved comments in a Github Pull Request | |
document.querySelectorAll('span.Details-content--closed').forEach((e)=>{e.click()}) |
View convert-heic-photos-to-jpg.sh
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
ls -1 *.heic | xargs -n 1 bash -c 'convert "$0" "${0%.*}.jpg"' |
View main.go
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
package main | |
import ( | |
"fmt" | |
"os" | |
"runtime/trace" | |
) | |
func main() { | |
f, err := os.Create("trace.out") |
View .zshrc
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
#settings for go path | |
export GOPATH=$HOME/go | |
PATH=$PATH:$GOPATH/bin | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/topaztee/.oh-my-zsh |
View slack.go
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
package slack | |
import ( | |
"bytes" | |
"encoding/json" | |
"net/http" | |
) | |
func Firehose() Slack { | |
return Slack{ |