Skip to content

Instantly share code, notes, and snippets.

@wookiefriseur
wookiefriseur / converter.ts
Last active August 17, 2023 15:31
Convert ESOProfiler.lua to PerfettoTracelog using streams
// SPDX-FileCopyrightText: 2022 sirinsidiator <insidiator@cmos.at>
//
// SPDX-License-Identifier: GPL-3.0-or-later
import * as fs from 'fs';
import * as path from 'path';
class LuaToJsonConverter {
convertLuaToJSONString(content: string): string {
let lines = content.split(/[\r\n]+/g);
@wookiefriseur
wookiefriseur / README.md
Last active April 27, 2023 23:18
USB Reset

USB Reset

Status: Work in progress

Purpose

I have an old laptop of which the USB hubs crash from time to time, disabling my peripherals.

Until the issue is identified I'm using the following script to rebind:

@wookiefriseur
wookiefriseur / PixelWatcher.ahk
Created April 25, 2023 19:37
AHK PixelWatcher
#Requires AutoHotkey v2.0
#SingleInstance Force ; run script only once
; ------ CONFIG AND VARS ------
A_ScriptName := "PixelWatcher"
LogFile := A_ScriptDir . "/" . A_ScriptName . ".log"
DebugEnabled := true
ClientTitle := "Target Application Window Title"