I hereby claim:
- I am selfagency on github.
- I am selfagency (https://keybase.io/selfagency) on keybase.
- I have a public key whose fingerprint is 7BAC 69DC 4B9F EB24 A4FA BD1E 403E 7FE8 0254 BC6A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/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 {} \; |
| #!/usr/bin/env bash | |
| npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm |
| #!/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. |
| #!/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 |
| #!/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 |
| #!/usr/bin/env bash | |
| lab project create $argv | |
| lab clone $argv | |
| cd $argv | |
| git add . | |
| git commit -m 'initial commit' |
| #!/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 |
| #!/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 |
| #!/usr/bin/env bash | |
| snap install micro --classic |