Skip to content

Instantly share code, notes, and snippets.

@Fank
Fank / beguidcalc.md
Last active August 29, 2024 17:52
ArmA 3 / DayZ-Standalone - BattlEye GUID calculation

md5("BE" (2 bytes) + 64-bit SteamID (8 bytes))

@sigmaris
sigmaris / python3-ldap-gssapi.py
Created September 10, 2014 09:48
Authenticate to LDAP using python3-ldap and python-gssapi
import gssapi
from ldap3 import Connection, SASL_AVAILABLE_MECHANISMS
from ldap3.protocol.sasl.digestMd5 import sasl_digest_md5
from ldap3.protocol.sasl.external import sasl_external
from ldap3.protocol.sasl.sasl import send_sasl_negotiation, abort_sasl_negotiation
SASL_AVAILABLE_MECHANISMS.append('GSSAPI')
def sasl_gssapi(connection, controls):
@JonTheNiceGuy
JonTheNiceGuy / COMBINED TESTING
Created July 8, 2015 09:46
MS Access VBA to perform AES encryption, Base 64 encoding and create SHA1 hashes
Sub test()
Dim SourceString As String
Dim InterimString As String
Dim DestinationString As String
SourceString = ""
InterimString = ""
DestinationString = ""
Do Until Len(SourceString) > 220
@extremecoders-re
extremecoders-re / avr.cfg
Created October 23, 2017 10:51
IDA config file for ATmega328
.ATmega328
; Ida avr.cfg (c) THANATOS
SUBARCH=5
RAM=2048
ROM=32768
EEPROM=1024
; MEMORY MAP
@knoopx
knoopx / README.md
Last active February 18, 2025 00:46
Creality Ender 3 Stock Factory Vref

Creality3D v1.1.2 stock vref values

A4988 Drivers
Vref set to ~90% of stepper rated current
Rs = 0.1ohm

X = 0,58v (0,725A)
Y = 0,58v (0,725A)
Z = 0,58v (0,725A)
@ChristianGfK
ChristianGfK / chrome_dev.reg
Created February 12, 2019 13:53
Chrome default browser registry settings
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe]
@="C:\\Program Files (x86)\\Google\\Chrome Dev\\Application\\chrome.exe"
"Path"="C:\\Program Files (x86)\\Google\\Chrome Dev\\Application"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Chrome]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Chrome\.exe]
@LatvianModder
LatvianModder / _variants.js
Last active July 9, 2025 10:30
KubeJS Scripts
// This is not actually executable code.
// This just shows that there are different ways to write things,
// you chose whichever looks best/fits better your needs.
// Note: 'data' is only available in 1.12.2 and represents item metadata or damage
// Items
// If string is used, it parses it as /give would.
'minecraft:stone_sword' // Stone Sword
'minecraft:stone_sword 1 10' // Stone Sword with damage 10
'minecraft:apple 30' // 30 Apples
// ==UserScript==
// @name Disable Bing Search Engine Scroll
// @namespace your-namespace
// @description Disables scrolling on the Bing search engine page to prevent accidental scrolling into the Bing chat feature.
// @match https://www.bing.com/*
// @version 1
// @grant none
// ==/UserScript==
window.addEventListener("wheel", e=> {
@supechicken
supechicken / root_mi_box_s_2nd_gen.md
Last active July 13, 2025 11:39
A tutorial for rooting Xiaomi TV Box S 2nd Gen (jaws) without UART/teardown

Rooting Xiaomi TV Box S 2nd Gen (jaws) without UART/teardown

Table of contents

  • Prerequisites
  • Step 1: Download the stock ROM for Xiaomi TV Box S 2nd Gen
  • Step 2: Extract boot image from the OTA archive
  • Step 3: Update the system with downloaded OTA archive
  • Step 4: Patch boot image with Magisk
  • Step 5: Unlock bootloader with fastboot
  • Step 6: Reboot to system and complete setup