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
#!/usr/bin/env bash | |
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - | |
sudo apt -y install gcc g++ make nodejs python3-dev python3-pip python3-setuptools | |
npm -g install npm@latest node-gyp | |
git clone https://github.com/nodenv/nodenv.git ~/.nodenvd['/'] |
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
#!/usr/bin/env bash | |
snap install micro --classic |
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
#!/usr/bin/env bash | |
sudo apt-add-repository ppa:fish-shell/release-3 | |
sudo apt -y update | |
sudo apt -y install fish | |
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish | |
sudo chsh $(whoami) -s /usr/bin/fish |
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
#!/usr/bin/env bash | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
apt-get update | |
apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common |
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
#!/usr/bin/env bash | |
lab project create $argv | |
lab clone $argv | |
cd $argv | |
git add . | |
git commit -m 'initial commit' |
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
#!/usr/bin/env bash | |
#Generate a new private key and Certificate Signing Request | |
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key | |
#Generate a self-signed certificate (see How to Create and Install an Apache Self Signed Certificate for more info) | |
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt | |
#Generate a certificate signing request (CSR) for an existing private key | |
openssl req -out CSR.csr -key privateKey.key -new |
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
#!/usr/bin/env bash | |
sudo apt-get install -y software-properties-common | |
sudo add-apt-repository -y ppa:jgmath2000/et | |
sudo apt-get update | |
sudo apt-get -y install et | |
systemctl status et | |
sudo ufw allow 2022 |
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
#!/usr/bin/env bash | |
# 1. Add the `docker` group if it doesn't already exist | |
sudo groupadd docker | |
# 2. Add the connected user `$USER` to the docker group. Optionally change the username to match your preferred user. | |
sudo gpasswd -a $USER docker | |
# IMPORTANT: Log out and log back in so that your group membership is re-evaluated. |
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
#!/usr/bin/env bash | |
npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm |
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
#!/usr/bin/env bash | |
DOMAIN=$1 | |
APP=$2 | |
PORT=$3 | |
## WordPress config | |
if [[ "$APP" == "wp" ]]; then | |
INSTALL="composer install --no-dev" | |
FIXPERMS="sudo find . -type d -exec chmod 755 {} \; |