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
sudo apt-get update && sudo apt-get upgrade -y && \ | |
sudo apt-get install unzip git -y && \ | |
curl -fsSL https://bun.sh/install | bash && \ | |
source ~/.bashrc && \ | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash && \ | |
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && \ | |
nvm install 22 && \ | |
npm install -g pm2 |
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="domain.com” | |
LOCAL_PORT="3000" | |
EMAIL="[email protected]” | |
echo "Starting setup for $DOMAIN pointing to localhost:$LOCAL_PORT" | |
sudo apt update | |
sudo apt install -y nginx certbot python3-certbot-nginx |
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
sudo apt update && \ | |
sudo apt install -y certbot && \ | |
sudo certbot certonly --standalone --preferred-challenges http -d matrix.aiana.xyz && \ | |
sudo certbot renew --dry-run && \ | |
sudo systemctl enable certbot.timer && \ | |
sudo systemctl start certbot.timer |
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
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ |
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
sudo apt-get install -y \ | |
libgconf-2-4 libgbm-dev libasound2 libatk1.0-0 libc6 \ | |
libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 \ | |
libgcc1 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \ | |
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 \ | |
libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 \ | |
libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \ | |
libxtst6 ca-certificates fonts-liberation libappindicator1 \ | |
libnss3 lsb-release xdg-utils |
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
import puppeteer from 'puppeteer-extra' | |
import StealthPlugin from 'puppeteer-extra-plugin-stealth' | |
puppeteer.use(StealthPlugin()) | |
const userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' | |
const windowSize = [1920, 1080] | |
const userDataDir = './userDataDir' | |
const browserPath = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' | |
const browserArgs = { | |
headless: '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
#!/bin/bash | |
apt-get update | |
apt-get install -y sudo rsync ca-certificates curl gnupg | |
install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
chmod a+r /etc/apt/keyrings/docker.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ | |
$(. /etc/os-release && echo $VERSION_CODENAME) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |