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
| #!/usr/bin/sh | |
| ################################################### | |
| # Check if the brew path of the item exists | |
| # then run brew install if not exits | |
| # set the PATH and MANPATH for each item | |
| ################################################### | |
| # check if brew is installed | |
| if ! [ -x "$(command -v brew)" ]; then |
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
| #!/usr/bin/sh | |
| # Setup fzf | |
| # --------- | |
| if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then | |
| export PATH="$PATH:/usr/local/opt/fzf/bin" | |
| fi | |
| # Custom settings | |
| # ------------ |
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
| #!/usr/bin/sh | |
| ################################ | |
| # functions | |
| ################################ | |
| # docker contianer logs | |
| dklog(){ | |
| docker ps -a \ | |
| --format "table{{.ID}}\t{{.Names}}\t{{.Ports}}" \ |
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" | |
| "math/rand" | |
| "strconv" | |
| "sync" | |
| "sync/atomic" | |
| "time" | |
| ) |
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
| { | |
| "basics": { | |
| "label": "Software Engineer", | |
| "phone": "+852 60406776", | |
| "email": "[email protected]", | |
| "website": "https://registry.jsonresume.org/nickccm1122", | |
| "other": [], | |
| "name": "Nick Chan", | |
| "location": { | |
| "city": "Hong Kong SAR", |
OlderNewer