Skip to content

Instantly share code, notes, and snippets.

View Razuuu's full-sized avatar
🏠
Working from home

Joshua Samenfink Razuuu

🏠
Working from home
  • Germany
  • 04:49 (UTC +01:00)
View GitHub Profile
@Razuuu
Razuuu / lineage_builder.sh
Last active January 22, 2026 14:58
Basic script for building LineageOS. Drop this script to you're android/lineage/ folder
#!/bin/bash
#
# This Script is by Razuuu
#
# Initialize variables with default values
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
DEVICE=""
BUILD_TARGET=""
@Razuuu
Razuuu / install-rspamd-stable.sh
Last active January 24, 2025 15:45
Install rspamd stable - Debian
#!/bin/bash
# See https://rspamd.com/downloads.html
apt update
apt-get install sudo
sudo apt-get install -y lsb-release wget gpg
CODENAME=`lsb_release -c -s`
if [ $CODENAME = "trixie" ]; then
CODENAME="bookworm"
fi
@Razuuu
Razuuu / nginx-sites-enabler.sh
Last active August 28, 2023 19:33
Nginx sites enabler / linker - Domain needs a custom folder: /etc/nginx/<domain>/<file>
#!/bin/bash
# ------------------------------------------------------
# Functions - Common
# ------------------------------------------------------
domain=$1
domainpath0="/etc/nginx/sites-available/${domain,,}"
domainpath1="/etc/nginx/sites-enabled/${domain,,}"
logpath="/var/log/nginx/${domain,,}"
@Razuuu
Razuuu / certbot-rfc2136.sh
Last active November 19, 2025 19:58
Create wildcard letsencrypt certificate with rfc2136 - Custom nameservers
#!/bin/bash
# ------------------------------------------------------
# Functions - Common
# ------------------------------------------------------
DOMAIN="$1"
shift
# See https://certbot-dns-rfc2136.readthedocs.io/en/stable/ for certbot.ini
@Razuuu
Razuuu / deb-sury-org-php.sh
Last active October 14, 2025 22:19
Add php repository from sury.org
#!/bin/bash
# Debian Repository not available for forky (yet)
DISTRO=$(dpkg --status tzdata|grep Provides|cut -f2 -d'-')
if [ "${DISTRO}" == "forky" ]; then DISTRO="bookworm"; fi
# Install dependencies
apt update
apt install apt-transport-https ca-certificates curl -y
@Razuuu
Razuuu / aptall.sh
Last active November 7, 2023 15:08
apt all commands -> /usr/bin/aptall
#!/bin/bash
for i in update upgrade dist-upgrade full-upgrade autoremove; do
repeat(){ for j in {1..25}; do echo -n "#"; done }
repeat; echo -e "\n\nexecuting command: apt -y ${i}\n"; repeat; echo
apt -y ${i}
done
test