Skip to content

Instantly share code, notes, and snippets.

View ntfshard's full-sized avatar
🥔
ジャガイモ

Maksim Derbasov ntfshard

🥔
ジャガイモ
View GitHub Profile
@ntfshard
ntfshard / parse.py
Last active August 22, 2024 16:20
LD_DEBUG=all to graphviz visualizer
#!/usr/bin/env python3
'''
Usage:
> LD_DEBUG=all LD_DEBUG_OUTPUT=logname ${COMMAND} ${ARGS}...
> cat logname.${PID} | parse.py | dot -Tsvg > output.svg
Or copy output of script to online visualizer, like this https://dreampuf.github.io/GraphvizOnline
(dot is from graphviz package)
@ntfshard
ntfshard / index.html
Created June 11, 2024 11:07
valgrind xml report viewer (very sketchy)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fast-xml-parser/4.4.0/fxparser.min.js"></script>
<script lang="js">
let data = {};
let kind = {};
-Wall -Wextra -Weverything -Wno-c++98-compat -Wno-reserved-identifier -Wno-c++98-compat-pedantic
@ntfshard
ntfshard / win10_fix.reg
Created April 14, 2018 16:57
Windows 10 fix for user experience
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
"DisableWindowsConsumerFeatures"=dword:00000001
@ntfshard
ntfshard / fuzzer.rb
Created April 19, 2017 14:03
Simple file fuzzer: args: filename and count of iterations
#! ruby
def main(fname, count)
f = IO.binread(fname)
sz = f.size
count.to_i.times {
f[ rand (sz) ] = rand(256).chr
}