Skip to content

Instantly share code, notes, and snippets.

View theorium-0's full-sized avatar
๐Ÿ˜œ
sleeping ;)

GitHub User theorium-0

๐Ÿ˜œ
sleeping ;)
  • Minneapolis, Minnesota
View GitHub Profile
@theorium-0
theorium-0 / RaspAPRemix.ps1
Created May 2, 2026 01:37
powershell -ExecutionPolicy Bypass -File RaspAPRemix.ps1
# โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
# โ•‘ MainsailOS + RaspAP Hybrid Image Builder โ•‘
# โ•‘ Aesthetic PowerShell Launcher โ•‘
# โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
# Ensure script runs from its own directory
Set-Location -Path (Split-Path $MyInvocation.MyCommand.Path)
# ASCII banner
$banner = @"
@theorium-0
theorium-0 / UAC.cmd
Created July 12, 2025 00:23
Simply requests admin privileges.
@echo off
setlocal enableextensions enabledelayedexpansion
cls
:: Check for administrative privileges
NET SESSION >NUL 2>&1
IF %ERRORLEVEL% NEQ 0 (
echo Requesting administrative privileges
goto :elevate
) ELSE (
pkg update && pkg upgrade -y
pkg install proot proot-distro tsu fakeroot parted -y
proot -0 login
pkg install git tsu termux-tools jq root-repo docker -y
sudo git clone --depth=1 https://github.com/XternA/income-generator.git ~/.igm
# echo "alias igm=\"sh -c 'cd ~/.igm; sh start.sh \\\"\\\$@\\\"' --\"" >> ~/."${SHELL##*/}rc"; source ~/."${SHELL##*/}rc"
igm
@theorium-0
theorium-0 / WMI-Repair.cmd
Created June 18, 2025 10:02
Repairs a broken Windows PC by means of resetting Group Policy, WMI, and restarting services.
@echo off
setlocal enableextensions enabledelayedexpansion
cls
:: Check for administrative privileges
NET SESSION >NUL 2>&1
IF %ERRORLEVEL% NEQ 0 (
echo Requesting administrative privileges
goto :elevate
) ELSE (
@theorium-0
theorium-0 / hyperv-install-fix.bat
Created June 13, 2023 12:06
Fixes the error on some computers when trying to enable Hyper-V
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
Pause
@theorium-0
theorium-0 / 5_line_mass_downloader.py
Created May 8, 2023 08:00
A mass file downloader written in only five lines. It could be shrunk and improved but I made this at 3:01AM
import os, urllib.request
from urllib.parse import urlsplit
LINK_FILE, links, filter, download = 'links.txt', [], (lambda l=None: links.append(l.replace('\n', '')) if l != "" or l != "\n" else None), (lambda url=None: urllib.request.urlretrieve(url, os.path.basename(urlsplit(url).path)) if url != None else None)
for line in open(os.path.join(os.getcwd(), LINK_FILE), 'w+').readlines(): filter(line)
for l in links: download(l)
crunch 0 25 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX YZ0123456789 | aircrack-ng --bssid aa:aa:aa:aa:aa:aa -w- cap.cap
@theorium-0
theorium-0 / Camera.py
Last active April 15, 2020 19:04
OpenCV-Object-Detection
import cv2
import numpy as np
from matplotlib import pyplot as plt
hog = cv2.HOGDescriptor()
hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())
# Detect faces
faceCascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml")
eyeCascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_eye.xml")
@theorium-0
theorium-0 / index.html
Created March 18, 2019 14:13
OpenCV.js Face Detection (WebAssembly)
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<body>
<div id="container">
<canvas class="center-block" id="canvasOutput" width=320 height=240></canvas>
</div>
<div class="text-center">
<input type="checkbox" id="face" name="classifier" value="face" checked>
<label for="face">face</label>
<input type="checkbox" id="eye" name="cascade" value="eye">
<label for="eye">eye</label>