Skip to content

Instantly share code, notes, and snippets.

@CzBiX
CzBiX / clash.ahk
Created December 5, 2020 08:35
Clash in AHK
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
#Persistent
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Menu, Tray, NoStandard
Menu, Tray, Tip, Clash
Menu, Tray, Icon, SHELL32.dll, 136, 1
@CzBiX
CzBiX / eventbus.js
Created December 24, 2020 18:38
A simple JS Event Bus
class EventBus {
subscriptions = {};
on(eventType, callback) {
const id = Symbol('id');
if (!this.subscriptions[eventType]) this.subscriptions[eventType] = {};
this.subscriptions[eventType][id] = callback;
const thiz = this;
#!/bin/bash
# Author: CzBiX
# URL: https://gist.github.com/CzBiX/e64256b23687bb13da02
# Support only Ubuntu 16.04
DEST_PACKAGE="libglib2.0-0"
DEST_VERSION="2.48.1-1~ubuntu16.04.1"
DEST_FILE="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4800.1"
PATCH_DATA="f626c: eb"
SUCCESS_MSG="Please quit nautilus with 'nautilus -q' to make sure patch worked."
@CzBiX
CzBiX / skip_qb_check.py
Last active October 24, 2023 22:15
Force skip hash check in qBittorrent.
#!/usr/bin/env python3
import os
import sys
class BTFailure(Exception):
pass
@CzBiX
CzBiX / thin-provisioning-tools.sh
Last active March 23, 2024 12:53
initramfs hook to add modules/files for LVM thin/cache LV into initrd.
#!/bin/sh
# see: https://bugzilla.redhat.com/show_bug.cgi?id=921235
# http://forums.debian.net/viewtopic.php?f=5&t=119644
PREREQ="lvm2"
prereqs()
{
echo "$PREREQ"
}
@CzBiX
CzBiX / Crashlands.CT
Created February 13, 2021 12:05
Cheat engine table for Crashlands v1.5.66-rc.9(Publish v100.0.63.0) Epic
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="34">
<CheatEntries>
<CheatEntry>
<ID>7</ID>
<Description>"Character attr"</Description>
<Options moHideChildren="1" moAllowManualCollapseAndExpand="1"/>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]