Skip to content

Instantly share code, notes, and snippets.

@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;
@hayleyxyz
hayleyxyz / How to remove zscaler
Last active April 1, 2024 16:44
How to remove zscaler without password
1. You will need admin access.
2. Suspend the zscaler processes
- I use this: https://github.com/DavidXanatos/TaskExplorer
3. Open regedit and navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Zscaler Inc.\Zscaler
4. Delete the key: UninstallPassword
- If you have suspended the processes, the key will not be immediately added back in.
5. Uninstall zscaler like you would any other program, via the control panel.
================================================================================================
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()
});
@hayleyxyz
hayleyxyz / some other dumb random string generator i made.js
Created January 28, 2022 17:06
some other dumb random string generator i made.js
const rnd = (len) => {
const arr = new Uint8Array(len);
crypto.getRandomValues(arr)
let str = '';
for(i in arr) {
start = 33;
end = 126;
str += String.fromCharCode((arr[i] % (end - start)) + start)
@hayleyxyz
hayleyxyz / dumb lowercase alphanumeric random string generator.js
Created January 28, 2022 16:54
dumb lowercase alphanumeric random string generator.js
const rnd = (len) => {
let ret = '';
while(ret.length < len) {
ret += Math.floor(Math.random() * Math.pow(36, Math.min(len, 32))).toString(36);
}
return ret.substring(0, len);
};
{"1":["Racing the Storm","Unlocking Disaster","Flying Blind","Flying on Empty","Cutting Corners","Fire on Board"],"2":["Blow Out","A Wounded Bird","The Killing Machine","Deadly Crossroads","Lost","Missing Over New York"],"3":["Crash of the Century","Hanging by a Thread","Attack Over Baghdad","Out of Control","Fight for Your Life","Bomb on Board","Mistaken Identity","Helicopter Down","Death and Denial","Kid in the Cockpit","Collision Course","Ocean Landing","Head on Collision","Runaway Train"],"4":["Miracle Escape","Falling from the Sky","Fire Fight","Missed Approach","Hidden Danger","Panic Over the Pacific","Out of Sight","Fog of War","Vertigo","Ghost Plane"],"5":["Invisible Killer","Behind Closed Doors","Gimli Glider","Dead Weight","Fanning the Flames","Southern Storm","Explosive Evidence","Mixed Signals","Fatal Distraction","Phantom Strike"],"6":["Ripped Apart","Fatal Flaw","Who's Flying the Plane?"],"7":["Scratching the Surface","Lockerbie Disaster","Blown Apart","Sight Unseen","Operation Babylift","Fallin
getTitles = () => {
return $$('.info [itemprop="name"]').map((el) => el.title);
};
season = document.querySelector('#bySeason').selectedOptions[0].textContent.trim();
obj = {};
if (localStorage.getItem('aci')) {
obj = JSON.parse(localStorage.getItem('aci'));
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background]
[HKEY_CLASSES_ROOT\Directory\Background\shell]
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""
"Icon"="\"C:\\WINDOWS\\system32\\cmd.exe\""