Skip to content

Instantly share code, notes, and snippets.

View kolanski's full-sized avatar
🏠
Working from home

Nikolay Kolanski kolanski

🏠
Working from home
View GitHub Profile
@kolanski
kolanski / hook.c
Created August 10, 2022 16:02 — forked from mmozeiko/hook.c
reads process stdout + stderr and prints it out as it becomes available
// compile this to hook.dll
// for example, with MSVC: cl.exe /LD /MT /O2 hook.c /Fehook.dll
#include <windows.h>
// get this from https://github.com/kubo/plthook
#include "plthook_win32.c"
static plthook_t* hook;
<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
<dict>
<key>AAPL,ig-platform-id</key>
<data>
CQCbPg==
</data>
<key>device-id</key>
<data>
mz4AAA==
</data>
00000000 23 20 43 6f 70 79 72 69 67 68 74 20 28 43 29 20 |# Copyright (C) |
00000010 32 30 31 31 20 54 68 65 20 41 6e 64 72 6f 69 64 |2011 The Android|
00000020 20 4f 70 65 6e 20 53 6f 75 72 63 65 20 50 72 6f | Open Source Pro|
00000030 6a 65 63 74 0d 0a 23 0d 0a 23 20 4c 69 63 65 6e |ject..#..# Licen|
00000040 73 65 64 20 75 6e 64 65 72 20 74 68 65 20 41 70 |sed under the Ap|
00000050 61 63 68 65 20 4c 69 63 65 6e 73 65 2c 20 56 65 |ache License, Ve|
00000060 72 73 69 6f 6e 20 32 2e 30 20 28 74 68 65 20 22 |rsion 2.0 (the "|
00000070 4c 69 63 65 6e 73 65 22 29 3b 0d 0a 23 20 79 6f |License");..# yo|
00000080 75 20 6d 61 79 20 6e 6f 74 20 75 73 65 20 74 68 |u may not use th|
00000090 69 73 20 66 69 6c 65 20 65 78 63 65 70 74 20 69 |is file except i|
@kolanski
kolanski / ftpd.js
Created August 31, 2020 16:52
ftpd fix to work on windows
var TRACE = false;
var net = require('net');
var util = require('util');
var pathModule = require('path');
var fsModule = require('fs');
var dateformat = require('dateformat');
var EventEmitter = require('events')
var glob = require('./glob');
var starttls = require('./starttls');