Skip to content

Instantly share code, notes, and snippets.

View selfagency's full-sized avatar
👾
beep boop

daniel sieradski selfagency

👾
beep boop
View GitHub Profile
@selfagency
selfagency / keybase.md
Last active August 1, 2025 15:49
keybase proof

Keybase proof

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:

@selfagency
selfagency / add-domain.sh
Last active August 1, 2025 15:49
hosting management scripts
#!/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 {} \;
@selfagency
selfagency / del-all-modules.sh
Last active August 1, 2025 15:48
delete all npm modules
#!/usr/bin/env bash
npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm
@selfagency
selfagency / sudoless-docker.sh
Last active August 1, 2025 15:48
docker without sudo
#!/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.
@selfagency
selfagency / install-et.sh
Last active August 1, 2025 15:47
install eternal terminal on ubuntu
#!/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
@selfagency
selfagency / generate-ssl.sh
Last active August 1, 2025 15:48
generate ssl certs
#!/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
@selfagency
selfagency / init-gitlab-repo.sh
Last active August 1, 2025 15:48
initialize gitlab repo with glab cli
#!/usr/bin/env bash
lab project create $argv
lab clone $argv
cd $argv
git add .
git commit -m 'initial commit'
@selfagency
selfagency / install-docker-ubuntu.sh
Last active August 1, 2025 15:48
install docker on ubuntu
#!/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
@selfagency
selfagency / install-fish-shell.sh
Last active August 1, 2025 15:47
install fish shell on ubuntu
#!/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
@selfagency
selfagency / install-micro.sh
Last active August 1, 2025 15:48
install micro editor on ubuntu
#!/usr/bin/env bash
snap install micro --classic