Skip to content

Instantly share code, notes, and snippets.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Gist]
@="Publish to Gist (Public)"
"Icon"="C:\\Users\\hayley\\AppData\\Local\\GitHubDesktop\\app.ico"
[HKEY_CLASSES_ROOT\*\shell\Gist\command]
@="\"C:\\Program Files\\GitHub CLI\\gh.exe\" gist create \"%1\" --web --public"
[HKEY_CLASSES_ROOT\*\shell\GistSecret]
const fs = require('fs');
if (process.argv.length != 3) {
console.log('Usage: node binary_rank <filename>');
process.exit(1);
}
const filename = process.argv[2];
const isValidAscii = (b) => {
@hayleyxyz
hayleyxyz / HxD & ImHex.reg
Created April 12, 2025 12:54
HxD & ImHex.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\HxD]
@="Open with &HxD"
[HKEY_CLASSES_ROOT\*\shell\HxD\command]
@="\"C:\\Program Files\\HxD\\HxD.exe\" \"%1\""
[HKEY_CLASSES_ROOT\*\shell\ImHex]
@="Open with &ImHex"
@hayleyxyz
hayleyxyz / indyresources.cs
Last active April 6, 2025 16:05
Indiana Jones and the Great Circle .resource extractor
using System.Text;
namespace indyresources
{
internal class Program
{
static void Main(string[] args)
{
ParseResources(File.OpenRead(@"D:\SteamLibrary\steamapps\common\The Great Circle\base\gameresources_pc.resources"));
}
@hayleyxyz
hayleyxyz / clear_yt_playlist.js
Created February 27, 2025 17:22
Clear YouTube playlist
// Go to https://www.youtube.com/playlist?list=WL
setInterval(function() {
document.querySelector('#primary button[aria-label="Action menu"]').click();
var things = document.evaluate('//span[contains(text(),"Watch later")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < things.snapshotLength; i++) {
things.snapshotItem(i).click();
}
}, 1000);
@hayleyxyz
hayleyxyz / aci episodes.json
Created November 25, 2024 00:08
ACI Episodes
[
{
"episodeNumber": 1,
"episodeInSeason": 1,
"title": "Unlocking Disaster",
"incident": "United Airlines Flight 811",
"incidentWikiPage": "https://en.wikipedia.org/wiki/United_Airlines_Flight_811",
"airDate": "2003-09-10T00:00:00.000Z",
"description": "On 24 February 1989, part of the right-side fuselage of United Airlines Flight 811 rips off, ejecting nine people from the aircraft and causing explosive decompression. The flight later lands safely at Honolulu without any more loss of life. It was later determined that an electrical short circuit caused the cargo door to open.\nNote: This accident is covered again in the Season 24 episode 'Terror Over The Pacific'.\n\n\nType of aircraft: Boeing 747-100",
"season": 1
@hayleyxyz
hayleyxyz / YouTube-Mayday-videos.json
Created November 2, 2024 21:35
Mayday YouTube video titles + URL
[
{
"title": "The Worst Crashes of 90s and 00s | Mayday Air Disaster",
"link": "https://www.youtube.com/watch?v=r6m9AM1cOxY"
},
{
"title": "When Nature Fights Back! | Mayday Air Disaster",
"link": "https://www.youtube.com/watch?v=V5F4oJeWnN8"
},
{
@hayleyxyz
hayleyxyz / ProcessWatcher.cs
Created July 27, 2024 15:35
ProcessWatcher.cs - Watch for process stop/start events
using System;
using System.Management;
namespace ExplorerHistory
{
internal class ProcessWatcher
{
private ManagementEventWatcher _startWatch;
private ManagementEventWatcher _stopWatch;
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""
// ==UserScript==
// @name quora bypass
// @version 1
// @grant none
// @match https://www.quora.com/*
// ==/UserScript==
document.querySelectorAll('.qu-zIndex--blocking_wall').forEach((el) => {
el.remove()
});