Skip to content

Instantly share code, notes, and snippets.

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

Joshua Samenfink Razuuu

🏠
Working from home
View GitHub Profile
@Razuuu
Razuuu / 64gram-install.sh
Last active January 30, 2024 00:04
64gram-install.sh
#!/bin/bash
echo "Install 64Gram"
cd /tmp
# Download 64Gram from GitHub Releases
ghfile=$(curl -s https://api.github.com/repos/TDesktop-x64/tdesktop/releases/latest \
| grep "browser_download_url.*64Gram_.*_linux.zip" \
| cut -d : -f 2,3 \
| tr -d \",)
@Razuuu
Razuuu / lineage_setup.sh
Last active May 1, 2024 13:04
Sync LineageOS on a freshly installed Debian 12+ server
#!/bin/bash
#
# Script by Razuuu
#
# Variables
CONFIGFILE=$1
# Access to usershell via function
@Razuuu
Razuuu / discord-install-update.sh
Last active October 20, 2023 23:29
Install or (default: update) discord via tar.gz file
#!/bin/bash
echo "$([ "$1" == "install" ] && echo "Install" || echo "Update") Discord"
# Download Discord
cd /tmp
curl -o discord.tar.gz -J --location-trusted --max-redirs 10 "https://discord.com/api/download/stable?platform=linux&format=tar.gz"
# Unzip
tar -xzf discord.tar.gz
@Razuuu
Razuuu / beammp-on-linux.md
Last active February 24, 2024 09:49
Play BeamMP on Linux

What you need

  • browser, curl or wget
  • unzip
  • protontricks
  • lutris

e.g Debian:
apt install curl unzip protontricks
e.g Arch/EndeavourOS:
pacman -S curl unzip protontricks

@Razuuu
Razuuu / install_prism.txt
Last active November 14, 2023 16:23
install prism (multimc fork, minecraft launcher) on debian
# See: https://prismlauncher.org/download/linux/#debian-ubuntu-(x86_64-arm64)
curl -q 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
echo "deb [signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
sudo apt update
sudo apt install prismlauncher
if using trixie, replace sources.list.d to bookworm instead
@Razuuu
Razuuu / install_PreMiD.txt
Last active October 17, 2023 21:01
Install PreMiD on debian based systems
See: https://github.com/PreMiD/Linux/blob/master/README.md#packagecloud
$ curl -s https://packagecloud.io/install/repositories/PreMiD/Linux/script.deb.sh | sudo bash
$ sudo apt install premid
if you're using debian buster and up like trixie, edit your sources.list.d file to buster instead of trixie
https://premid.app/downloads
Select your browser
@Razuuu
Razuuu / stockrom_mounter.sh
Last active September 12, 2023 15:45
Mounts stock rom (system,vendor) to /mnt/stock/. Can also unmount
#!/bin/bash
DEVICE="$1"
UMOUNT="$2"
if [ -z "$DEVICE" ]; then
echo "Usage: $0 <DEVICE> [optional: --unmount]"
exit 1
fi
@Razuuu
Razuuu / lineage_builder.sh
Last active November 15, 2023 19:02
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 August 28, 2023 19:32
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,,}"