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
# On MAC | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install zsh | |
# On Ubuntu | |
sudo apt install zsh -y | |
# install ohmyzsh and zsh-syntax-highlighting & zsh-autosuggestions & powerlevel10k plugins | |
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k |
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
### steps how to create | |
# load freebsd 9.3 in single-user mode (2) | |
gmirror label -vb round-robin boot /dev/da0p1 | |
gmirror label -vb round-robin root /dev/da0p2 | |
gmirror label -vb round-robin swap /dev/da0p3 | |
gmirror load | |
mount /dev/mirror/root /mnt | |
echo 'geom_mirror_load="YES"' >> /mnt/boot/loader.conf |
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
k3d cluster create --k3s-arg "--tls-san=91.207.210.233@server:*" | |
k3d cluster create -p "80:80@loadbalancer" -p "443:443@loadbalancer" --k3s-arg "--tls-san=kubernetes@server:*" |
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
sudo amazon-linux-extras install epel -y | |
sudo yum install stress -y | |
sudo stress --cpu 8 --timeout 20 |
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
# on Mac | |
https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/macos-install.html | |
brew install jenv | |
/usr/libexec/java_home -V | |
jenv add /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home | |
jenv add /Users/air/Library/Java/JavaVirtualMachines/azul-1.8.0_322/Contents/Home | |
jenv global 11 | |
# on Ubuntu | |
sudo update-alternatives --config java |
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
{ | |
"configEntities":{ | |
"identityStore": { | |
"_type": "identityStoreType", | |
"type": "activedirectory", | |
"domain": "org.internal", | |
"nickname": "org", | |
"directoryServiceType": "activedirectory", | |
"bind": "gssapi", | |
"kerberosKeytab": "/etc/krb5.keytab", |
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
# update | |
sudo apt-get update | |
sudo apt-get -qq update | |
# Install kubectl | |
sudo curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | |
sudo chmod +x ./kubectl | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
# Install kubectx (Switch between Kubernetes contexts/namespaces) |
NewerOlder