Skip to content

Instantly share code, notes, and snippets.

View wallopthecat's full-sized avatar
🎯
Focusing

Wallop wallopthecat

🎯
Focusing
  • Mom's basement
View GitHub Profile
@wallopthecat
wallopthecat / vzdump-hook-script.pl
Created May 14, 2018 19:15
Perl script that uploads backup files to cloud storage using rclone, removes backups older then 1 week.
#!/usr/bin/perl -w
# example hook script for vzdump (--script option)
use strict;
print "HOOK: " . join (' ', @ARGV) . "\n";
my $phase = shift;
@wallopthecat
wallopthecat / connect.ps1
Created November 26, 2017 20:15 — forked from jdforsythe/connect.ps1
Remote Desktop Auto Login Powershell Script
echo "Connecting to 192.168.1.100"
$Server="192.168.1.100"
$User="Administrator"
$Password="AdminPassword"
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password
mstsc /v:$Server
@wallopthecat
wallopthecat / restart.pl
Created July 11, 2017 16:35 — forked from marvin/restart.pl
TBH Arma3 Greuh Liberation restart script
#!/usr/bin/perl
use warnings;
use strict;
use constant PORT => 2302;
use constant PATH => $ENV{'PWD'}.'/';
use constant PIDFILE => PATH.PORT.'.pid';
use constant HCPIDFILE => PATH.PORT.'.hcpid';
@echo off
COLOR 0B
TITLE Arma 3 Server Auto Restarter
SETLOCAL EnableExtensions enabledelayedexpansion
set EXE=arma3server_x64.exe
set /A restartCounter=0
rem Change this to the amount of Minutes you want the server to restart each time.
Set minutesToRestart=240
@wallopthecat
wallopthecat / SteamUpdateMods.py
Created June 16, 2017 19:34 — forked from firefly2442/SteamUpdateMods.py
AlphaSquad Arma3 Server Update via Steam Workshop
#!/usr/bin/env python
import subprocess, sys, os
STEAM_USERNAME = "steamusername"
STEAM_PASSWORD = "steampassword"
WORKSHOP_IDS = [["843425103", "@rhsafrf"],
["843593391", "@rhsgref"],