Skip to content

Instantly share code, notes, and snippets.

View sneak-it's full-sized avatar
๐Ÿ™‚
๐Ÿ˜„

Ian sneak-it

๐Ÿ™‚
๐Ÿ˜„
View GitHub Profile
@sneak-it
sneak-it / importbhoptimerzones.sql
Created October 2, 2020 01:37
Import new bhoptimer map zones to an existing database, without overwriting your current zoned maps
INSERT INTO `mapzones`
(`map`,
`type`,
`corner1_x`,
`corner1_y`,
`corner1_z`,
`corner2_x`,
`corner2_y`,
`corner2_z`,
`destination_x`,
@sneak-it
sneak-it / restartrdp.bat
Created July 21, 2020 15:22
Restart Remote Desktop Services
net stop "Remote Desktop Services"
net start "Remote Desktop Services"
net start "Remote Desktop Services UserMode Port Redirector"
net start "Remote Desktop Configuration"
pause
@Echo Off
:Start
If [%1==[ Goto :EOF
PushD %~pd1
"C:\Program Files\7-Zip\7z.exe" u -tbzip2 %~nx1.bz2 %1
Shift
PopD
Goto Start
sc config PolicyAgent start= disabled
sc config IKEEXT start= disabled
sc config MpsSvc start= disabled
sc config bfe start= disabled
net stop policyagent
net stop ikeext
net stop mpssvc
net stop bfe
@sneak-it
sneak-it / geoip2download.sh
Created July 21, 2020 15:05
GeoIP2 Database Download Script
#!/bin/bash
#Replace {KEY} with your Maxmind license key, replace {DIR} with your desired resting place for .mmdb files
# Create temp working dir
mkdir -v /tmp/geoip
# Download GeoLite2-City & GeoLite2-Country
wget -c "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key={KEY}&suffix=tar.gz" -O /tmp/geoip/GeoLite2-City.tar.gz
wget -c "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key={KEY}&suffix=tar.gz" -O /tmp/geoip/GeoLite2-Country.tar.gz