I hereby claim:
- I am tanapoln on github.
- I am tanapoln (https://keybase.io/tanapoln) on keybase.
- I have a public key ASDc9_yBhBNgC11hOreQgAAZqzrrKdVORkI0iRqTRr0XpAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| set -e | |
| #install homebrew | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| /opt/homebrew/bin/brew install autoconf automake bash bison coreutils curl direnv fish freetype gd gettext git icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip mas pkg-config re2c wget zlib libsodium imagemagick gmp oniguruma mise libpq argon2 | |
| /opt/homebrew/bin/brew install docker docker-compose kubectl pyenv hey jq ffmpeg openssl@1.1 | |
| /opt/homebrew/bin/brew install --cask visual-studio-code linearmouse iterm2 wrap google-chrome jetbrains-toolbox karabiner-elements vlc lens wireshark pgadmin4 1password 1password-cli proxyman |
| #!/usr/bin/env bash | |
| DOWNLOAD_LINK=$1 | |
| FILENAME=$2 | |
| if [[ -z "$DOWNLOAD_LINK" || -z "$FILENAME" ]]; then | |
| echo "Error: missing DOWNLOAD_LINK or FILENAME" | |
| echo "Usage: install-bin.sh [DOWNLOAD_LINK] [FILENAME]" | |
| exit 1 | |
| fi |
| import ( | |
| "go/ast" | |
| "golang.org/x/tools/go/analysis" | |
| ) | |
| var Analyzer = &analysis.Analyzer{ | |
| Name: "globalmutex", | |
| Doc: "declare global mutex has no effect in multi-process, do not use", | |
| Run: run, |
| package main | |
| import ( | |
| "golang.org/x/tools/go/analysis/multichecker" | |
| "golang.org/x/tools/go/analysis/passes/asmdecl" | |
| "golang.org/x/tools/go/analysis/passes/assign" | |
| "golang.org/x/tools/go/analysis/passes/atomic" | |
| "golang.org/x/tools/go/analysis/passes/bools" | |
| "golang.org/x/tools/go/analysis/passes/buildtag" | |
| "golang.org/x/tools/go/analysis/passes/cgocall" |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "fmt" | |
| "sync/atomic" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| func main() { | |
| counter := 0 |
| package main | |
| import ( | |
| "database/sql" | |
| "github.com/gin-gonic/gin" | |
| _ "github.com/go-sql-driver/mysql" | |
| ) | |
| var db *sql.DB |
| package main | |
| import "github.com/gin-gonic/gin" | |
| func main() { | |
| r := gin.Default() | |
| quota := 1000 | |
| r.GET("/", func(c *gin.Context) { |