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/zsh | |
# networksetup -getdnsservers Wi-Fi | |
# 8.8.8.8 | |
# 8.8.4.4 | |
networksetup -setdnsservers Wi-Fi 192.168.29.1 |
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
package main | |
import "fmt" | |
func main() { | |
line := 0 | |
for i := 0; i < 1000; i++ { | |
if i%20 == 0 { | |
fmt.Println() | |
line += 1 |
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
Application | |
Application Support | |
Caches | |
Library | |
node_modules | |
.cargo | |
.dartServer | |
.gem | |
.gradle | |
.ivy2 |
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 | |
# | |
brew install coreutils tree wget curl htop watch aria2 jq mas | |
# | |
brew install --cask iterm2 hyper | |
# | |
brew install --cask google-chrome firefox tor-browser |
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 | |
TOKEN=$(kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}') | |
echo $TOKEN | |
# kubectl config set-credentials kubernetes-admin --token="${TOKEN}" |
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
https://programming-language-benchmarks.vercel.app/ | |
https://benchmarksgame-team.pages.debian.net/benchmarksgame/ |
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 | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | |
echo ' | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
'>> ~/.zshrc |
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 | |
brew install jenv | |
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(jenv init -)"' >> ~/.zshrc | |
source ~/.zshrc | |
brew install AdoptOpenJDK/openjdk/adoptopenjdk8 | |
brew install AdoptOpenJDK/openjdk/adoptopenjdk11 | |
brew install AdoptOpenJDK/openjdk/adoptopenjdk14 | |
java -version |