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
#https://hub.docker.com/r/linuxserver/code-server | |
docker run -d \ | |
--name=code-server \ | |
-e PUID=1000 \ | |
-e PGID=1000 \ | |
-e TZ=Etc/UTC \ | |
-e PASSWORD="${PASSWORD}" \ | |
-e SUDO_PASSWORD="${SUDO_PASSWORD}" \ | |
-e DEFAULT_WORKSPACE=/config/workspace \ |
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 | |
# Colors | |
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
# https://github.com/owenthereal/ccat/releases | |
CCAT_VER="1.1.0" | |
BIN_DIR="${HOME}/.local/bin" |
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 | |
#-- --------------------------- | |
#-- Author: alexolinux ------- | |
#-- --------------------------- | |
k3dCheck(){ | |
command -v k3d > /dev/null | |
if [ $? -eq 0 ]; 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
#!/bin/bash | |
set -e | |
echo "Starting Helm Installation..." | |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | |
chmod +x get_helm.sh | |
./get_helm.sh |
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 | |
# Remove/clean UP | |
clear && echo "Seek and Remove!" | |
sleep 3 | |
kubeadm reset -f | |
sudo rm -rf /etc/cni /etc/kubernetes /var/lib/dockershim /var/lib/etcd /var/lib/kubelet /var/run/kubernetes ~/.kube/* | |
iptables -F && iptables -X | |
iptables -t nat -F && iptables -t nat -X |
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
syntax on | |
set showcmd | |
set hlsearch | |
set wildmenu | |
set ai | |
set si | |
set et | |
set sw=2 | |
set ts=2 |
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 | |
labserver_list=( | |
host1.mylabserver.com | |
host2.mylabserver.com | |
host3.mylabserver.com | |
) | |
echo "Backing Up Hosts..." | |
sudo cp -p /etc/hosts /etc/hosts.save |
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 | |
#https://www.jenkins.io/doc/book/installing/linux/ | |
# Functions | |
command_exists() { | |
command -v "$1" >/dev/null 2>&1 | |
} | |
check_command_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 | |
ZSHRC_FILE="${HOME}/.zshrc" | |
ZSH_PLUGINS=( | |
kubectl | |
kube-aliases | |
kubectl-autocomplete | |
) | |
TEMP_FILE=$(mktemp) |
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 | |
GROUP_NAME="devops" | |
GROUP_SUDO="/etc/sudoers.d/devops" | |
ZSHRC_FILE="${HOME}/.zshrc" | |
ZSH_PLUGINS=( | |
zsh-syntax-highlighting | |
zsh-autosuggestions | |
) |