Skip to content

Instantly share code, notes, and snippets.

// Generates the APISIDDHASH / SAPISIDHASH token Google uses in the Authorization header of some API requests
// Usage: node google_token_hash_generator.js <TOKEN> <DOMAIN>
var TOKEN = process.argv[2]; // APISID / SAPISID token (base64)
var DOMAIN = process.argv[3]; // Domain name, including https://, without trailing slash
var $gb = function () {
function a() {
e[0] = 1732584193;
e[1] = 4023233417;
@ReimarPB
ReimarPB / wttr.in.bat
Created September 11, 2021 19:10
Windows bat file for viewing a weather report from the command line using wttr.in (curl is required)
@echo off
mode con: cols=126 lines=40
curl wttr.in
pause
@ReimarPB
ReimarPB / growtopia_packet_events.txt
Created December 21, 2020 09:52
This is a list of all events that can be used in Growtopia's protocol, found by decompiling Growtopia and extracting all strings from the function located at Growtopia.exe+0x28ed90. I haven't had much luck finding the parameters to these, although the first three strings are probably parameters to the fourth string.
pos2d
scale2d
size2d
OnRender
OnUpdate
OnReconnect
OnSpawn
OnRemove
OnRequestWorldSelectMenu
OnConsoleMessage