Skip to content

Instantly share code, notes, and snippets.

View xenedium's full-sized avatar
⛓️
Escaping the constant gaze

Ahmed Abderraziq xenedium

⛓️
Escaping the constant gaze
View GitHub Profile
@xenedium
xenedium / setup-docker-ufw-debian.sh
Last active March 9, 2023 19:14
Script for Installing Docker engine and UFW Firewall for HTTP(s) & SSH
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
# This script will by default install ufw and enable ssh, http and https & Install Docker engine
# Check for root access
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
@xenedium
xenedium / docker-compose.yml
Created May 13, 2023 18:43
My servarr docker setup (sonarr, radarr, lidarr, readarr, prowlarr, jellyfin, qbittorrent)
version: "3.1"
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=13001
- PGID=13000
- UMASK=002
- TZ=Africa/Casablanca
@xenedium
xenedium / k8s-control-plane-init.sh
Last active July 16, 2023 01:04
Script to init a kubernetes control plane, tested on Debian 12
#!/bin/bash
# update apt and download k8s & containerd
set -e
# Wait to apt frontend lock to be free
check_lock() {
while fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1 ; do
echo "Waiting for other apt-get instances to exit"
sleep 1
@xenedium
xenedium / k8s-node-init.sh
Created July 16, 2023 01:04
Script to init kubernetes node and link it with the control plane, debian 12
#!/bin/bash
# update apt and download k8s & containerd
set -e
# Wait to apt frontend lock to be free
check_lock() {
while fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1 ; do
echo "Waiting for other apt-get instances to exit"
sleep 1
#Blocking Instagram Domains
0.0.0.0 instagram.c10r.facebook.com
0.0.0.0 api.instagram.com
0.0.0.0 black.ish.instagram.com
0.0.0.0 i.instagram.com
0.0.0.0 instagram-shv-01-ams2.fbcdn.net
0.0.0.0 instagram-shv-01-ams3.fbcdn.net
0.0.0.0 instagram-shv-01-ash5.fbcdn.net
0.0.0.0 instagram-shv-01-atl1.fbcdn.net
0.0.0.0 instagram-shv-01-bru2.fbcdn.net