Skip to content

Instantly share code, notes, and snippets.


Olexandr Sydorchuk osv

View GitHub Profile
osv /
Last active September 19, 2022 13:50

NixOS Root on ZFS (single disk). No swap.

Disable Secure Boot. ZFS modules can not be loaded if Secure Boot is enabled.

Download NixOS Live Image and boot from it.

Connect to the Internet.

Set root password or /root/.ssh/authorized_keys.

osv / gist:3deb93a38601aa8c35a1b34a4a95a6af
Created August 8, 2022 10:43 — forked from tthtlc/gist:f44148a7cb4d820bf2d3da64638de68c
Forensic analysis techniques: linux
View gist:3deb93a38601aa8c35a1b34a4a95a6af
Function: perf, strace/ltrace
I/O: fatrace, lsof
Function/Tree: perf, valgrind/kcachegrind(slow), google-perftools (low precision)
osv / gist:a56db790dbbec46730033fd4e42749da
Created June 29, 2022 21:27
pulse audio compressor module linux
View gist:a56db790dbbec46730033fd4e42749da
load-module module-ladspa-sink sink_name=compressor-stereo plugin=sc4_1882 label=sc4 control=1,1.5,401,-30
set-default-sink compressor-stereo
osv / gist:8f6fc7edef7baa787da4
Created July 14, 2015 18:10
mongo dump and send via scp to remote
View gist:8f6fc7edef7baa787da4
DBNAME="<mongo db mae>"
# export dump pattern
# scp save directory
View vast.v2.example.xml
<?xml version="1.0"?>
<VAST version="2.0">
<AdSystem>Some RTB</AdSystem>
<AdTitle>Some RTB</AdTitle>
<Description>Some RTB</Description>
osv / mintu-vast3.xml
Created October 21, 2021 14:50
vast 3 example #2
View mintu-vast3.xml
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="3.0">
<Ad id="50472620">
osv / scan_dom_table.ts
Created October 16, 2021 12:13
html -> canvast -> tesseract example
View scan_dom_table.ts
// Search table for, caprute rendered value and recognize using teseract. Pretty slow but works.
// Run script in dev console for this website:
(async ()=> {
const { default: capture } = await import( '' )
const { default: { recognize } } = await import( '' )
const rows = document.querySelectorAll('.table-responsive tr')
osv / vast.v3.example.xml
Created September 20, 2021 13:00
Vast 3 example
View vast.v3.example.xml
<?xml version="1.0"?>
<VAST version="3.0">
<AdSystem>Example Ad system</AdSystem>
<AdTitle>Example title</AdTitle>
osv / sitemap.config.js
Created February 8, 2016 10:13
gulp sitemap task
View sitemap.config.js
// ISO_3166 language map.
en: 'en',
ru: 'ru',
sv: 'si',
fi: 'fi',
tr: 'tr',
el: 'gr'