This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! ruby | |
def main(fname, count) | |
f = IO.binread(fname) | |
sz = f.size | |
count.to_i.times { | |
f[ rand (sz) ] = rand(256).chr | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent] | |
"DisableWindowsConsumerFeatures"=dword:00000001 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Wall -Wextra -Weverything -Wno-c++98-compat -Wno-reserved-identifier -Wno-c++98-compat-pedantic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |