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 / 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 / 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."
@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 / sptcc.py
Last active December 24, 2015 04:13
查询上海公交卡的余额和消费情况。注意数据有延时!
#!/usr/bin/env python3
#
# Usage: sptcc.py 60XXXXXXXXX
import sys
import hashlib
import json
import re
import requests