Skip to content

Instantly share code, notes, and snippets.

View Masu-Baumgartner's full-sized avatar
🟢
Working on Moonlight Panel

Masu Baumgartner Masu-Baumgartner

🟢
Working on Moonlight Panel
View GitHub Profile
@Masu-Baumgartner
Masu-Baumgartner / docker-compose.yml
Last active March 14, 2024 21:48
A actually functional revolt docker compose file
version: "3.8"
services:
# MongoDB database
database:
image: mongo:4.4.16
restart: always
volumes:
- ./data/db:/data/db
@Masu-Baumgartner
Masu-Baumgartner / cleanup.sh
Last active March 10, 2024 16:08
A small cleanup script for pterodactyl servers to free some diskspace
#! /bin/bash
cd /var/lib/pterodactyl/volumes
# Get the initial free disk space
initial_space=$(df -h . | awk 'NR==2 {print $4}')
echo "1. Clearing docker caches, stopped containers, unused images"
docker system prune --force
@Masu-Baumgartner
Masu-Baumgartner / ddosDetection.sh
Last active September 1, 2023 12:24
DDoS Detection Script ready to use for a integration in third party software using the "DATA" output. Should work on every linux system
#! /bin/bash
echo "DDos Detect by masusniper#0666";
interface=$(ip -o -4 route show to default | awk '{print $5}')
dumpdir=/root/dumps
echo -e "Using interface ${interface}"
mkdir $dumpdir