Skip to content

Instantly share code, notes, and snippets.

View Chris92de's full-sized avatar

Christopher F. Chris92de

View GitHub Profile
@Chris92de
Chris92de / tm2020_convert_wsid_login.js
Last active March 14, 2023 20:48
Trackmania Account ID <-> Login conversions in Javascript
export function LoginToUuid(login) {
return Buffer.from(login, "base64").toString("hex").replace(/([0-z]{8})([0-z]{4})([0-z]{4})([0-z]{4})([0-z]{12})/,"$1-$2-$3-$4-$5");
}
export function UuidToLogin(uuid) {
return Buffer.from(uuid.replaceAll("-",""), "hex").toString("base64url");
}
@Chris92de
Chris92de / TimeSpent.Script.txt
Created December 24, 2022 23:17
TimeSpent Maniascript Editor Plugin by Beu#1337
#RequireContext CMapEditorPlugin
#Const ScriptName "TimeSpent.Script.txt"
#Const Version "2022-10-26"
// Made by Beu#1337
Text CreateManialink()
{
return """

Keybase proof

I hereby claim:

  • I am Chris92de on github.
  • I am chris92 (https://keybase.io/chris92) on keybase.
  • I have a public key whose fingerprint is 0751 49BF 057C F2CE 82C4 39B0 D8C8 F26A A94F 904D

To claim this, I am signing this object: