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 | |
wget -O- https://aka.ms/install-vscode-server/setup.sh | sh | |
code-server |
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
eksctl create cluster --node-type=t4g.large |
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
import boto3 | |
oidc_uri = "https://oidc.eks.us-west-2.amazonaws.com/id/STRING_GOES_HERE" | |
thumbprint = "THUMBRPRINT_GOES_HERE" | |
audience = "sts.amazonaws.com" | |
tag_key0 = "ApplicationShortName" | |
tag_value0 = "foo" | |
print(oidc_uri) |
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 | |
DT=$(date +%Y-%m-%d) | |
PASS=$(aws secretsmanager get-secret-value --secret-id testdb01-password --query SecretString --output text) | |
for DB in $(mysql -h db1-DBNAME-instance-1.INSTANCEID.us-east-1.rds.amazonaws.com -uadmin -p$PASS -e 'show databases' -s --skip-column-names); do | |
mysqldump -h db1-DBNAME.cluster-INSTANCEID.us-east-1.rds.amazonaws.com -uadmin -p$passwd $DB > $DB.sql | |
echo "$DB database dumped" | |
tar -zcvpf $DB.sql.tar.gz $DB.sql |
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 | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt install s3fs -y | |
sudo apt-get install awscli -y | |
git clone https://github.com/Chia-Network/chia-blockchain.git -b latest --recurse-submodules | |
cd chia-blockchain | |
sh install.sh | |
. ./activate | |
chia init |
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 | |
wget https://gist.githubusercontent.com/bil9000/9d655d4851bf87ac85b4c13b53d1ed11/raw/97bba5771db75b8550937ee7dc5770e3a019f779/ubuntu-bootstrap.sh | |
chmod +x ubuntu-bootstrap.sh | |
./ubuntu-bootstrap.sh |
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
alias k="kubectl" | |
alias kc="kubectl config" | |
alias kcgc="kubectl config get-contexts" | |
alias kcuc="kubectl config use-context" | |
alias kg="kubectl get" | |
alias kgp="kubectl get pods" | |
alias kgpa="kubectl get pods --all-namespaces" | |
alias kgi="kubectl get ingress" | |
alias kgia="kubectl get ingress --all-namespaces" |
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 | |
# This files is to bootstrap an ubuntu ec2 instance (non-arm) | |
# with a lot of the tools that are necessary for kuberentetes and | |
# devops tasks. | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
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 | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install awscli -y | |
sudo apt-get install jq -y | |
aws configure | |
export REGION=us-gov-east-1 | |
export ACCOUNT_NUMBER=$(aws sts get-caller-identity | jq -r ".Account|.") | |
aws s3 mb s3://trucking-for-jesus |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/bil9000/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
NewerOlder