Skip to content

Instantly share code, notes, and snippets.

@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]
@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;
@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 / mail.go
Created July 26, 2020 13:21
The tiny mail command write in golang.
package main
import (
"crypto/tls"
"flag"
"fmt"
"io/ioutil"
"net"
"net/smtp"
"os"
@CzBiX
CzBiX / .vimrc
Created October 17, 2019 08:21
vimrc
" based on http://github.com/jferris/config_files/blob/master/vimrc
set nocompatible
set ruler
" display incomplete commands
set showcmd
" do incremental searching
@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 / README
Created May 31, 2018 08:48
Use Google Drive Sync via proxy on Mac
Create new file at ~/Library/LaunchAgents/environment.plist
Add this code block and modify to appropriately set your environmental variables
@CzBiX
CzBiX / videbcontrol.sh
Created March 4, 2017 11:10
script to modify control file in deb.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo Use fakeroot to run this script.
exit 1
fi
DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
#!/bin/bash
# Author: CzBiX
# URL: https://gist.github.com/CzBiX/8608f3520b92a77c79e0
DEST_PACKAGE="unity"
DEST_VERSION="7.3.2+15.10.20151016-0ubuntu1"
DEST_FILE="/usr/lib/compiz/libunityshell.so"
DEST_FILE_HASH="d1be69f0dc23f8a69441359b9aea27f4"
PATCH_DATA="341b76: 909090909090"
SUCCESS_MSG="Please log out to make patch work."
#!/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."