Skip to content

Instantly share code, notes, and snippets.

@slowpeek
slowpeek / lba-16.txt
Created June 16, 2024 23:47
xorriso: PVD from the first and the second VDS
-- code 0 1 (1)
01 .
-- id 1 5
4344 3030 31 CD001
-- version 6 1 (1)
01 .
-- unused1 7 1
00 .
-- system_id 8 32
2020 2020 2020 2020 2020 2020 2020 2020
@slowpeek
slowpeek / netbsd10-pvd.txt
Last active June 14, 2024 16:44
PVD vddump of NetBSD-10.0-amd64.iso
-- code 0 1 (1)
01 .
-- id 1 5
4344 3030 31 CD001
-- version 6 1 (1)
01 .
-- unused1 7 1
00 .
-- system_id 8 32
4e65 7442 5344 2020 2020 2020 2020 2020 NetBSD
@slowpeek
slowpeek / dropbear-netplan-fix
Last active February 12, 2024 04:20
Clean up netplan stuff after dropbear-initramfs
#!/bin/sh
: <<'README'
This is a fix for a well-known problem [1] with dropbear-initramfs+netplan
combo.
When dropbear starts, it enables networking [2]. This results in netplan configs
for available ifaces created under /run/netplan. After unlocking, the configs
are still there preventing networkmanager from picking ifaces up: by default,
@slowpeek
slowpeek / nodropbear
Last active February 8, 2024 23:19
Make dropbear not start with 'nodropbear' or 'dropbear=no' kernel arg
#!/bin/sh
: <<'README'
Make dropbear not start with 'nodropbear' or 'dropbear=no' kernel arg.
Put this script under /etc/initramfs-tools/scripts/init-top/ and update
initramfs.
README
#!/usr/bin/env bash
set -eu
bye () {
printf '%s\n' "$1"
exit 1
}
blkid_type=
@slowpeek
slowpeek / keyboard.xml
Last active January 14, 2024 15:19
Kodi remote control mod for Nokia 8000
<?xml version="1.0" encoding="UTF-8"?>
<!--
MIT license (c) 2024 https://github.com/slowpeek
Homepage: https://gist.github.com/slowpeek/50b5123d23b038d5b06b1452057be0c2
--
Kodi remote control mod for Nokia 8000
@slowpeek
slowpeek / demo.md
Last active March 31, 2023 21:32
orgmode renderer bug: line breaks in inline code

before some code after

@slowpeek
slowpeek / demo.org
Last active March 30, 2023 23:57
orgmode renderer bug demo

How it should be:

line1
line2

How it renders nested into a list item (notice the extra tailing blank line):

  • list item
@slowpeek
slowpeek / nvidia-smi
Last active May 5, 2024 20:21
nvidia-smi dmon adapter: 525, 530, 535, 545
#!/usr/bin/env bash
# MIT license (c) 2022-2024 https://github.com/slowpeek
# Homepage: https://gist.github.com/slowpeek/006680bb06e671bc489d4a3274ff3d19
: <<'README'
Applicable nvidia driver versions: 525, 530, 535, 545, 550
ABOUT --
@slowpeek
slowpeek / ubuntu-sources
Last active April 10, 2024 22:59
Simple apt sources generator for ubuntu
#!/usr/bin/env bash
# MIT license (c) 2021 https://github.com/slowpeek
# Homepage: https://gist.github.com/slowpeek/beedb0c9c79638d4a7ec0099d0875ecb
# Simple apt sources generator for ubuntu.
############################ DEPRECATION NOTICE ############################
#
# This script has evolved into https://github.com/slowpeek/ubuntu-sources