Skip to content

Instantly share code, notes, and snippets.

View vasylherman's full-sized avatar
☁️
in the cloud

Vasyl Herman vasylherman

☁️
in the cloud
View GitHub Profile
@vasylherman
vasylherman / oh-my-zsh
Last active October 20, 2023 08:24
oh-my-zsh
# 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
### 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
@vasylherman
vasylherman / k3d
Last active April 5, 2023 14:59
k3d
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:*"
@vasylherman
vasylherman / stress.sh
Created June 14, 2022 17:45 — forked from mikepfeiffer/stress.sh
Install Stress Utility on Amazon Linux 2
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
sudo stress --cpu 8 --timeout 20
@vasylherman
vasylherman / install and manage java versions
Last active April 22, 2022 19:37
install and manage java versions
# 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
{
"configEntities":{
"identityStore": {
"_type": "identityStoreType",
"type": "activedirectory",
"domain": "org.internal",
"nickname": "org",
"directoryServiceType": "activedirectory",
"bind": "gssapi",
"kerberosKeytab": "/etc/krb5.keytab",
@vasylherman
vasylherman / install-kubectl-helm-ubuntu.sh
Last active November 15, 2020 16:37 — forked from onuralp/install-kubectl-helm-ubuntu.sh
This script installs kubectl kubectx and helm to you ubuntu. I usually use docker to connect kubectl. But I created this for some reason. Enjoy
# 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)