Skip to content

Instantly share code, notes, and snippets.

View Breakthrough's full-sized avatar

Brandon Castellano Breakthrough

View GitHub Profile
@Breakthrough
Breakthrough / unlock-kinduo2-levels.js
Last active October 15, 2024 01:37
Unlock All Kinduo 2 Levels
// Add --remote-debugging-port=9222 to launch args, run game
// Go to http://localhost:9222 and select the main game window with Firefox/Chrome
var connection = indexedDB.open('c3-localstorage-n3ijmdgu0mm', 2)
connection.onsuccess = (e) => {
var db = e.target.result;
var txn = db.transaction('keyvaluepairs', 'readwrite')
var o = txn.objectStore('keyvaluepairs')
console.info('original config:')
console.info(o.get('kinduoFrostSteam'));
@Breakthrough
Breakthrough / benchmark.py
Created February 17, 2022 02:00
DVR-Scan Multithread Benchmark
import threading
import time
import cv2
import numpy as np
import queue
class EndOfVideo:
pass
@Breakthrough
Breakthrough / pyscenedetect_json.py
Last active September 22, 2024 15:56
PySceneDetect JSON Output Example for @kusalavan
import json
from scenedetect import VideoManager
from scenedetect import SceneManager
from scenedetect.detectors import ContentDetector
from scenedetect.scene_manager import save_images
def get_scenes_json(video_path, threshold=30.0):
# Create our video & scene managers, then add the detector.
video_manager = VideoManager([video_path])
@Breakthrough
Breakthrough / example_ntfsresize.txt
Last active December 2, 2023 07:39
Bash script to show the progress of ntfsresize while installing Xubuntu (or other Debian-based variants) using the GUi installer and resizing an NTFS partition, only to be frustrated with the lack of zero time estimate or progress indicator.
$> sudo strace -p `pidof "ntfsresize"` -e trace=write 2>&1 | grep 'write(1'
[...]
write(1, " 87.38 percent completed\r", 25) = 25
write(1, " 87.38 percent completed\r", 25) = 25
write(1, " 87.92 percent completed\r", 25) = 25
write(1, " 87.92 percent completed\r", 25) = 25
[...]