Skip to content

Instantly share code, notes, and snippets.

Avatar

NeKz NeKzor

  • Austria
View GitHub Profile
@NeKzor
NeKzor / fetch.js
Created Aug 31, 2020
One-liner fetch API for NodeJs. Fuck axios & co.
View fetch.js
const fetch=(u)=>new Promise((x)=>require('https').request(u,{headers:{'User-Agent':'n^'}},(r)=>{let b='';r.on('data',(d)=>b+=d);r.on('end',()=>x(b));}).end());
// Example:
fetch('https://api.github.com/users/NeKzor/followers')
.then(JSON.parse)
.then((followers) => console.log(followers.length));
// > 15
@NeKzor
NeKzor / result.txt
Last active Feb 22, 2020
Data dump for Klooger.
View result.txt
sp:
00 884
01 578
02 1
03 790
04 109
05 522
06 801
07 0
08 597
@NeKzor
NeKzor / trees.js
Created Jan 9, 2020
Next level routing feat. The Beginners Guide.
View trees.js
const fs = require('fs');
const validCommands = ['color', 'wait', 'play', 'fire', 'clear', 'reset', 'say2'];
const parseVoice = (voice, line) => {
let curCommand = undefined;
let commands = [];
for (let c of line) {
if (c === '[') {
@NeKzor
NeKzor / sixense_patch.js
Created Nov 29, 2019
Play Portal 2 Sixense Perceptual Pack without Senz3D camera.
View sixense_patch.js
const fs = require('fs');
const client_sixense = process.argv[2] || './portal2_sixense/bin/client_sixense.dll';
const module = fs.readFileSync(client_sixense);
const patch = [
[
// Fix crash in init
// cmp ecx 69
@NeKzor
NeKzor / sda.js
Last active Nov 4, 2019
SDA forum scraping + analytics.
View sda.js
{
console.save = function(file, obj) {
let blob = new Blob([JSON.stringify(obj, null, 4)], { type: 'application/json' });
let e = document.createEvent('MouseEvents');
let a = document.createElement('a');
a.download = file;
a.href = window.URL.createObjectURL(blob);
a.dataset.downloadurl = ['application/json', a.download, a.href].join(':');
e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
View autoBanNoProof.php
<?php
include(__DIR__."/../loader.php");
$params = array(
"dateStart" => "2017-05-11",
"dateEnd" => date('Y-m-d', time() - 60 * 60 * 24),
"banned" => "0",
"demo" => "0",
"yt" => "0");
View trash.js
/*
Rex - Portal Carousel - 24.73
2018-10-09
-0.20 former WR by Rex (lasted 3 days)
Demo File
https://board.iverb.me/getDemo?id=87466
Player
View SAR.asl.md
  • Install SAR

  • Get SAR.asl (Right click -> Save as -> SAR.asl)

  • Add Scriptable Auto Splitter to layout

  • Browse and add SAR.asl as Script Path

@NeKzor
NeKzor / dllmain.cpp
Last active Jun 29, 2020
Really simple hack that enables jumping in The Stanley Parable.
View dllmain.cpp
// cl /O2 /MD /LD dllmain.cpp /Fe:tsp-bhop
#include <cstring>
#include <memory>
#include <Windows.h>
#include <Psapi.h>
// client.dll Build 5454
#define IN_JUMP_OFFSET 0xF52670 // /src/game/client/in_main.cpp
#define KEYDOWN_OFFSET 0x165EF // /src/game/client/in_main.cpp
@NeKzor
NeKzor / _pc_tas.cfg
Last active Jun 24, 2018
Easiest way to get 24.70
View _pc_tas.cfg
// map sp_a4_speed_tb_catch
// made by NeKz
sv_cheats 1
host_framerate 60
sv_allow_mobile_portals 1
sv_noclipduringpause 1
sar_autojump 1
sar_tas_autostart 1
You can’t perform that action at this time.