Skip to content

Instantly share code, notes, and snippets.

osv /
Created March 14, 2023 17:41 — forked from aakropotkin/
FZF Fuzzy search for NixOS Options and Packages
#! /usr/bin/env bash
# Provided a list of package and option names (provided by my `` and
# `` scripts), fuzzy search package and options information.
# The selection's definition will be opened in vim (as readonly) for viewing.
# NOTE: This script opens the result in a new URxvt window, you most likely will want
# to change that to open in the current window, or your own Terminal Emulator of
# choice. The current implementation is intended for use with a temporary XMonad
# scratchpad, which dies immediately after exiting (thus a new URxvt window is
# required).
git clone bzz
git clone setser
git clone Lord-Valen
git clone jakehamilton
git clone kanashimia
git clone Baitinq
git clone balsoft
git clone Weathercold
git clone rycee
git clone kenranunderscore
osv / configuration.nix
Created February 20, 2023 10:55 — forked from kodeFant/configuration.nix
My NixOs configuration with xMonad working
View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
imports =
[ # Include the results of the hardware scan.

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
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')