Skip to content

Instantly share code, notes, and snippets.

@NeKzor
NeKzor / lib.rs
Last active April 17, 2024 11:25
LiveSplitOne + ASR + SAR
#![no_std]
use asr::{
future::{next_tick, retry},
signature::Signature,
time::Duration,
timer::{self},
watcher::Watcher,
Process,
};
@NeKzor
NeKzor / libc_ffi.ts
Last active July 30, 2024 02:32
Deno FFI feat. libc.
export const libc = Deno.dlopen(
"libc.so.6",
{
dl_iterate_phdr: {
parameters: ["function", "pointer"],
result: "i32",
},
readlink: {
parameters: ["buffer", "buffer", "isize"],
result: "isize",
@NeKzor
NeKzor / efte_level_name.asl
Last active February 18, 2023 23:11
Read Lua 5.1 strings with Auto Splitting Language feat. Exodus from the Earth. Credits: @Skyrimfus
// Credits:
// Skyrimfus (original lua CE script, hash function)
// NeKz (conversion)
state("efte")
{
}
startup
{
@NeKzor
NeKzor / efte_console_commands.md
Last active February 1, 2023 16:26
Exodus from the Earth console commands. Dumped directly from memory.
Name Default Flags Help String
a_actorStats cmd - Print statistics on all actors
a_animMeshObb 1 N Make obb for animation
a_bladeUseContinuousInteraction 0 N use continuous interaction for blade effects
a_chaseCameraFixedAngles 1 N Camera angles are synchronized with vehicle angles
a_chaseCameraPitchLocal 1 N Chase camera pitch mode
a_chaseCameraRangeStep 1.0 N Chase camera range step
a_chaseCameraReactionTime 0.5 N Chase camera reaction time
a_chaseCameraTestHack 0 N Enable control of chase camera and vehicle at the same time
@NeKzor
NeKzor / mastodon.js
Created November 9, 2022 16:19
Simple Mastodon bot in 100 lines.
const fetch = require('node-fetch');
const createHiddenField = (obj, fieldName, value) => {
Object.defineProperty(obj, fieldName, {
enumerable: false,
writable: true,
value: value,
});
};
@NeKzor
NeKzor / mk.js
Last active July 12, 2021 20:08
Every Mario Kart World Record form 1996-2021. Datasets available at https://www.dolthub.com/repositories/nekz/mkwrs/data/master
const fetch = require('node-fetch');
const fs = require('fs');
const { JSDOM } = require('jsdom');
const path = require('path');
const baseApi = 'https://mkwrs.com';
const fetchOptions = {
headers: {
'User-Agent': 'ne^',
},
### Keybase proof
I hereby claim:
* I am nekzor on github.
* I am nekzor (https://keybase.io/nekzor) on keybase.
* I have a public key ASChzUyCppEK-FV2NEK6vgsaUrt7ApeVHa22Oampywj4LAo
To claim this, I am signing this object:
Statistics as of 2020-12-15:
Top wr holders
8 - riolu-tm
5 - GNR-HASKELL
4 - Erizel
3 - RacetalTM
2 - hug0220
Top countries by wrs
Statistics as of 2020-12-14:
Top wr holders
7 - riolu-tm
5 - Erizel
4 - GNR-HASKELL
3 - RacetalTM
3 - hug0220
Top countries by wrs