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
| # GIT | |
| git config --global user.email "you@example.com" | |
| git config --global user.name "Your Name" | |
| git config --global alias.co checkout | |
| git config --global alias.br branch | |
| git config --global alias.ci commit | |
| git config --global alias.st status |
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
| #!/bin/bash | |
| kubectl completion zsh > "${fpath[1]}/_kubectl" | |
| kind completion zsh > "${fpath[1]}/_kind" | |
| # Rebuild autocompletions or restart the terminal | |
| autoload -U +X compinit && compinit |
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 node-box='docker run -v $PWD:/src -w /src -u node -it node /bin/bash' | |
| alias speedtest='docker run --rm moutten/speedtest-cli' | |
| # ex: wrk -c50 -d1m -t4 http://127.0.0.1:9000 | |
| alias wrk='docker run --network host --rm williamyeh/wrk' | |
| alias docker-compose-viz='docker run --rm -it -v $(pwd):/input pmsipilot/docker-compose-viz render -m image' | |
| ## https://hub.docker.com/r/alpine/git/ | |
| alias git='docker run -ti --rm -v ${HOME}:/root -v $(pwd):/git alpine/git "$@"' |
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
| <?php | |
| header('Content-type: text/plain'); | |
| $username = "[user]"; | |
| $password = "[password]"; | |
| $hostname = "localhost"; | |
| $database = "[database]"; | |
| // Opens a connection to a mySQL server | |
| $connection=mysql_connect ($hostname, $username, $password); |