Skip to content

Instantly share code, notes, and snippets.

@stv-io
stv-io / aws-cloudshell-addons-v0.2.sh
Created January 8, 2024 08:15
aws-cloudshell-addons-v0.2.sh
#!/bin/bash
tmp_dir="$(mktemp -d)"
cd $tmp_dir
wget https://github.com/tomnomnom/gron/releases/download/v0.7.1/gron-linux-amd64-0.7.1.tgz
tar -xvzf gron-linux-amd64-0.7.1.tgz
sudo mv gron /usr/bin/
cd -
rm -rf $tmp_dir
@stv-io
stv-io / aws-cloudshell-addons-v0.1.sh
Created January 8, 2024 08:14
aws-cloudshell-addons-v0.1
tmp_dir="$(mktemp -d)"
cd $tmp_dir
wget https://github.com/tomnomnom/gron/releases/download/v0.7.1/gron-linux-amd64-0.7.1.tgz
tar -xvzf gron-linux-amd64-0.7.1.tgz
sudo mv gron /usr/bin/
cd -
rm -rf $tmp_dir
gron --version
export AWS_PAGER=
#!/bin/bash
export TERRAFORM_SWITCHER_VERSION=0.13.1308
export TGSWITCH_VERSION=0.6.0
sudo rm -rvf /usr/bin/terraform
mkdir -p ~/bin
curl https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh -o tfswitch-install.sh
bash tfswitch-install.sh -b ~/bin
rm -vf tfswitch-install.sh
curl https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh -o tgswitch-install.sh
#!/bin/bash
export TERRAFORM_SWITCHER_VERSION=0.13.1308
export TGSWITCH_VERSION=0.6.0
sudo rm -rvf /usr/bin/terraform
mkdir -p ~/bin
curl https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh -o tfswitch-install.sh
bash tfswitch-install.sh -b ~/bin
rm -vf tfswitch-install.sh
curl https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh -o tgswitch-install.sh
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon