Skip to content

Instantly share code, notes, and snippets.

@CzBiX
CzBiX / Crashlands.CT
Created Feb 13, 2021
Cheat engine table for Crashlands v1.5.66-rc.9(Publish v100.0.63.0) Epic
View Crashlands.CT
<?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 Dec 24, 2020
A simple JS Event Bus
View eventbus.js
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;
View clash.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 Jul 26, 2020
The tiny mail command write in golang.
View mail.go
package main
import (
"crypto/tls"
"flag"
"fmt"
"io/ioutil"
"net"
"net/smtp"
"os"
View .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 Sep 15, 2019
Force skip hash check in qBittorrent.
View skip_qb_check.py
#!/usr/bin/env python3
import os
import sys
class BTFailure(Exception):
pass
@CzBiX
CzBiX / README
Created May 31, 2018
Use Google Drive Sync via proxy on Mac
View README
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 Mar 4, 2017
script to modify control file in deb.
View videbcontrol.sh
#!/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
View patch_unity_launcher.sh
#!/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."
View patch_glib_trash.sh
#!/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."