Skip to content

Instantly share code, notes, and snippets.

View Dogers's full-sized avatar
🏠
Trying to work from home

Dogers

🏠
Trying to work from home
View GitHub Profile
@Dogers
Dogers / FireWatch.ps1
Created January 16, 2022 21:59
Powershell script for managing Windows Firewall rules for forcing Overwatch server regions
View FireWatch.ps1
#Requires -Module NetSecurity
#Requires -RunAsAdministrator
$Rules = @{
"NA West" = @(
"24.105.8.0/21"
);
"NA East" = @(
"24.105.40.0/21"
);
@Dogers
Dogers / rawprinttest.py
Created December 10, 2018 11:39
Send a file to Windows printer in RAW format
View rawprinttest.py
import win32print
import sys
from pathlib import Path
# Python 3 only..
if sys.version_info[0] < 3:
raise Exception("Python 3 or a more recent version is required.")
printers = win32print.EnumPrinters(4)
printercount = 0
@Dogers
Dogers / make-kiosk.sh
Last active June 13, 2018 01:45
Configuring Lockdown Mode on CentOS
View make-kiosk.sh
#!/bin/bash
# Lockdown script for Scientific Linux and CentOS (version 7)
# Created using Scientific Linux
# Wasn't made and never tested on different distros than CentOS!
# Version 1.4 for i386 and x86_64
#
# To download on fresh machine using shortened url, use $ curl -O lockdown.sh -J -L $shortUrl
#
# BASED ON KIOSK GENERATOR BY MARCIN WILK