Skip to content

Instantly share code, notes, and snippets.

View abaines's full-sized avatar

Alan Baines abaines

View GitHub Profile
@abaines
abaines / roll20.js
Last active July 29, 2023 06:46
roll20 storage sorter
let t = { "KB":1, "MB":1000};
function c(a,b)
{
return a.size-b.size;
}
$('.library-container').map( function(cb,el,index){
var c31 = el.children[3].children[1];
if (!c31){
@abaines
abaines / hashSearch.py
Created November 6, 2020 23:04
Search for duplicate files
import os
import sys
import hashlib
print('cwd',os.getcwd())
def hashFile(f):
return hashlib.sha224(open(f,'rb').read()).hexdigest()
@abaines
abaines / dishonored.py
Last active November 6, 2020 23:09
Detect quick saves in Dishonored
import os.path
import os
import threading
import hashlib
import shutil
import winsound
quickSaveFileName = 'quicksave.fos'
@abaines
abaines / TeamChanneling.py
Created November 6, 2020 22:47
Kantora Team Channeling Dice Roller
import random
import math
def r(v):
return random.randint(1, v)
def good():
return [r(12),r(12),r(2)]
@abaines
abaines / saver.py
Created November 6, 2020 22:43
Detect Introversion\Prison Architect autosave.prison
# Alan Baines
import os.path
import os
import threading
import hashlib
import shutil
import winsound
import time
import glob
@abaines
abaines / YouTube Music Volume Reducer.js
Last active September 29, 2020 23:07
Reduce YouTube Music volume below 5%
javascript:(function(){
window.__iwm = true;
const e = document.querySelector("#movie_player > div.html5-video-container > video");
const v = e.volume;
const n = v < 0.015 ? 0.05 : v - 0.01;
e.volume = n;
if (!window.__kv) {
console.clear();
e.addEventListener("volumechange", function(){
document.querySelector("#movie_player > div.html5-video-container > video").volume = window.__kv;
rem for ian