Skip to content

Instantly share code, notes, and snippets.

View uchks's full-sized avatar
💙
you're loved

Jason uchks

💙
you're loved
View GitHub Profile
@uchks
uchks / ipv6toggle.bat
Created August 20, 2023 20:24
Toggle IPv6 for things like Lilith or Debrid services.
@echo off
setlocal enabledelayedexpansion
fltmc > nul 2>&1 || (
powershell -Command "Start-Process '%0' -Verb runas"
if !errorlevel! neq 0 (
cls
echo This requires Administrative Privileges.
echo Right click on the script and select "Run as administrator".
pause
@uchks
uchks / dscautomodrules.md
Created April 23, 2023 18:43
automod rules I've made.

Markdown Links Automod Rule

this regex blocks markdown links.
\[[^\]]+\]\([^)]+\)

URL Encoding Automod Rule

this regex matches % followed by two-digit hexadecimal codes, mostly resemblant of URL encoded characters.
%[0-9A-Fa-f]{2}

Discord Invite Links Automod Rule

this regex matches any discord invite link, server url, or oauth2 authorization url, with support for both discord.com and discord.gg domains.

@uchks
uchks / Kernel Discord Installation.md
Last active October 5, 2022 07:41
A proper guide to install the Kernel Discord Modification, because all of the other guides are ass.

Kernel Discord Installation.md 👋
A proper guide to install the Kernel Discord Modification, because all of the other guides are ass.

Contents:
Windows Installation
macOS Installation

@uchks
uchks / Discord.md
Last active June 22, 2022 06:25
A gist of all things Discord
@uchks
uchks / THEOS on WSL 2.sh
Created May 6, 2021 22:00
THEOS on Windows 10 with WSL 2
# Install Ubuntu (20.0.4) via the Command Below in Windows Terminal / CMD / Powershell
wsl --install -d Ubuntu # Wait for the initial install to finish, and then follow the prompts to setup your user account.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fakeroot git perl build-essential libtinfo5
sudo update-alternatives --set fakeroot /usr/bin/fakeroot-tcp # Fixes FakeRoot
echo "export THEOS=~/theos" >> ~/.profile # Adds $THEOS

Clear Commit History:

  • Remove the history
rm -rf .git
  • Recreate the repos from the current content only
git init -b main
git add .