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
[core] | |
excludesfile = ~/.gitignore | |
[fetch] | |
prune = true | |
pruneTags = true | |
[pull] | |
ff = only | |
[rebase] | |
autosquash = true | |
[alias] |
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
gimme_after_cd() { | |
debug_log() { | |
test "$DEBUG" = "1" && echo "[debug] $1" | |
} | |
find_go_mod() { | |
dir=$PWD | |
while [ "$dir" != "/" ]; do | |
if [ -f "$dir/go.mod" ]; then | |
echo "$dir/go.mod" |
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
// Inspired by https://medium.com/@magnusjt/ioc-container-in-nodejs-e7aea8a89600 | |
class UserModel { | |
isUser(): boolean { | |
return true | |
} | |
} | |
class UserService { | |
constructor(private model: UserModel) {} |
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
#!/bin/bash | |
# | |
# Undeletes S3 files in bulk for a provided bucket/prefix/date deleted | |
# | |
# Author: Christopher Carman | |
# Based on https://stackoverflow.com/a/64352685/4175944 | |
set -e | |
Bucket=$1 |