This file contains hidden or 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
| [alias] | |
| aa = add . | |
| ag = reset HEAD^ # again | |
| b = branch | |
| bd = branch -D | |
| br = branch | |
| ca = commit --all | |
| cb = checkout -b | |
| changed = update-index --no-assume-unchanged # revert op of `git unchanged` | |
| ci = commit |
This file contains hidden or 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" | |
| "sync" | |
| ) | |
| // Int64Set int64类型的集合 | |
| type Int64Set struct { | |
| sync.RWMutex |
This file contains hidden or 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
| import re | |
| import subprocess | |
| # 不自动处理的规则 | |
| ex = ("SA4006", "structcheck") # 不自动处理的规则 | |
| # 忽略error返回白名单,白名单才处理 | |
| errwl = { | |
| "ymetrics": "_ = ", | |
| "yalert": "_ = ", |
This file contains hidden or 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" | |
| "strings" | |
| "github.com/spf13/cobra" | |
| ) | |
| func main() { |
This file contains hidden or 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" | |
| "time" | |
| ) | |
| var ( | |
| testString string | |
| ) |
This file contains hidden or 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
| services: | |
| db: | |
| image: 'mysql:5.7' | |
| container_name: mysql | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=123456 | |
| ports: | |
| - '3306:3306' | |
| volumes: | |
| - './mysql/data:/var/lib/mysql' |
OlderNewer