Skip to content

Instantly share code, notes, and snippets.

View HorridModz's full-sized avatar

HorridModz HorridModz

View GitHub Profile
@HorridModz
HorridModz / git_fix_commits.bat
Created August 12, 2025 01:17
Fix Github Commits Author
@echo off
REM This batch script will change the email address of certain commits within a git repository.
REM This is useful if you committed under the wrong email address or used the wrong account.
REM Usage:
REM 1. Make sure you have python3 installed, and install git-filter-repo (https://github.com/newren/git-filter-repo) using pip install git-filter-repo
REM 2. Download the python script git_fix_commits.py and fill in the variables OLD_NAMES and OLD_EMAILS (list of any names / emails you would like to replace),
REM as well as CORRECT_NAME and CORRECT_EMAIL (the correct name and email address you would like to use in the rewritten commit).
REM 3. Change the PYTHON_SCRIPT variable in the line below
@HorridModz
HorridModz / Search-Commits-For-Email.py
Created July 31, 2025 04:58
Search-Commits-For-Email
"""
Search all of your repositories for commits that contain your email address.
If you realized that you have made some commits with a private email address, you can use this script to find those commits
so you can then take relevant action to preserve your privacy.
This will NOT find commits in repositories that you do not own - those are a different story.
"""
"""
Generated with ChatGPT.
@HorridModz
HorridModz / switch_google_account_bookmarklet.js
Last active September 21, 2024 20:16
Bookmarklet - Google Switch Account And Redirect
javascript:/*
If you've ever tried to open a google service's website and had it restricted (no access, account blocked from service, unavailable under 18, etc.), but it's because it automatically opened with your default account and not the one you want, this bookmarklet is an easy way to solve the problem. It will open Google's "Choose an account" dialog, allowing you to select your desired account, and then open your google site with that account selected.
Thanks to https://stackoverflow.com/a/76933666 for the trick; code is by me
Full code (doesn't work as bookmarklet):
function bookmarklet() {
var site = window.prompt("Link to desired site");
if (site == null) {
return;
@HorridModz
HorridModz / ZipStrings.cs
Last active June 18, 2024 23:14
Simple little extension method / wrapper to support Zip() function on strings
using System.Linq;
using System.Collections;
using System.Collections.Generic;
static class ZipStringExtension
{
public static IEnumerable<List<char>> Zip(this string str1, string str2)
{
/* Zips two strings together, so that they may be iterated over.
* Wrapper for Enumerable.Zip() method; convenient because it converts strings to lists and specifies to return zipped element as an
@HorridModz
HorridModz / youtubeopenshortasvideo.js
Created October 26, 2023 00:33
Youtube Open Short As Video Bookmarklet
// Hate youtube shorts? Me too. Use this bookmarklet to open them as videos.
// Click it while on a youtube short, and it will open it as a video.
// Don't know what bookmarklets are? https://www.freecodecamp.org/news/what-are-bookmarklets/
javascript:window.location=window.location.href.replace("/shorts/","/watch?v=");
@HorridModz
HorridModz / webcatalog-unlimited-apps.md
Last active August 1, 2025 11:03
WebCatalog Unlimited Apps Crack

UPDATE 5/18/2025: The original method was patched. The gist has been updated to reflect the new method.

WebCatalog is a tool to easily create desktop apps from websites. It's an awesome tool, but the free version (Basic account) limits you to 5 2 apps.

webcatalog5applimitation

However, I came up with a simple workaround to trick WebCatalog into letting you install as many apps as you want:

All WebCatalog apps are stored at %LocalAppData%\Programs\WebCatalogApps.