Skip to content

Instantly share code, notes, and snippets.


Olexandr Sydorchuk osv

View GitHub Profile

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.

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 Jun 29, 2022
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
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 Oct 21, 2021
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 Oct 16, 2021
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')
View vast.v3.example.xml
<?xml version="1.0"?>
<VAST version="3.0">
<AdSystem>Example Ad system</AdSystem>
<AdTitle>Example title</AdTitle>
View test vast
<VAST version="2.0">
<VASTAdTagURI><![CDATA[;sz=0x0;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;dcmt=text/xml;dc_sdk_apis=[APIFRAMEWORKS];dc_omid_p=[OMIDPARTNER] ]]></VASTAdTagURI>
View .xsessionrc
xscreensaver &
sleep 10
setxkbmap -layout "us,ru(winkeys),ua(winkeys)" -option grp:menu_toggle,grp_led:scroll