Skip to content

Instantly share code, notes, and snippets.

@robinrm
robinrm / 7dtd-server.bat
Last active February 16, 2024 11:36
7 Days to Die Server Script
@echo off
:initial_Section
::var defaults
set debugmode=0
::0 = Normally
::1 = Normally + Debug Skip Intro
::2 = Normally + Backup Debug Skip Intro
::3 = Only Backup Normally
::4 = Only Backup + Debug Skip Intro
::5 = Backup + delete old date file
@robinrm
robinrm / 7dtd-backup.bat
Last active December 30, 2023 19:21
7 Days to Die Server Backup Script
@echo off
::var defaults
::caller
set Backup_Caller="C:\_bat\Backups\7dtd Backup.bat"
set timer_m=30
set /a timer_s= %timer_m% * 60
::UI
set color_red=04
@robinrm
robinrm / ldt.bat
Last active December 30, 2023 00:15
Local Date Time Generator Script
@echo off
:initial_Section
::set async mode
setlocal EnableDelayedExpansion
::var
::server template location
set templates="C:\_templates\_ldt"
::caller
@robinrm
robinrm / Fileinfo Script.bat
Last active May 5, 2023 11:33
Script to get usefull Fileinforamtions
@echo off
:initial_Section
::set async mode
setlocal EnableDelayedExpansion
::check for input
if !heartbeat! equ 1 (
goto start_Section
) else (
goto no_input
@robinrm
robinrm / Fileinfo UI.bat
Last active May 5, 2023 11:30
UI for FileInfo Script
@echo off
:initial_Section
::set UI
mode con lines=21 cols=100
title Fileinfo Debugger
color 0a
set heartbeat=1
::important for Script working properly
@echo off
:initial_Section
::set async mode
setlocal EnableDelayedExpansion
:start_Section
::Process looking for: cmd as admin named "Local Date Time Generator"
for /f "TOKENS=2" %%a in ('tasklist /nh /fi "WINDOWTITLE eq Administrator: Local Date Time Generator"') do Set PID=%%a
if %PID% gtr 0 (
@robinrm
robinrm / sinusbot_update.sh
Last active May 5, 2023 11:31
edited SinusBot Updater (by Phillip Eßwein) for environments with other ntp server settings
#!/bin/bash
# SinusBot installer by Philipp Eßwein - DAThosting.eu philipp.esswein@dathosting.eu
# Vars
MACHINE=$(uname -m)
Instversion="1.5"
USE_SYSTEMD=true
@robinrm
robinrm / mc 1.19.2 modded.bat
Last active September 17, 2023 15:38
Minecraft 1.19.2 Modded Server Script
@echo off
:initial_Section
::var defaults
set debugmode=0
::0 = Normally
::1 = Normally + Debug Skip Intro
::2 = Normally + Backup Debug Skip Intro
::3 = Only Backup Normally
::4 = Only Backup + Debug Skip Intro
::5 = Backup + delete old date file
@robinrm
robinrm / Minecraft Backup.bat
Last active September 17, 2023 16:55
Minecraft Server Backup Script
@echo off
::set async mode
setlocal EnableDelayedExpansion
::check for input
if !heartbeat! equ 1 (
goto initial_Section
) else (
goto no_input
)
@robinrm
robinrm / install-paperless-ngx.sh
Last active December 16, 2023 11:55
Installer for paperless ngx with docker-compose
#!/usr/bin/env bash
ask() {
while true ; do
if [[ -z $3 ]] ; then
read -r -p "$1 [$2]: " result
else
read -r -p "$1 ($3) [$2]: " result
fi
if [[ -z $result ]]; then