I hereby claim:
- I am dlitz on github.
- I am dlitz (https://keybase.io/dlitz) on keybase.
- I have a public key whose fingerprint is 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# creates a signed cert using openssl. depends on Debian's default openssl.cnf. | |
def _ssl_ca_signed_certificate(self, private_key, subject, | |
ca_key, ca_cert): | |
# Generate a CSR | |
csr = self._ssl_self_signed_cert( | |
private_key, subject=subject, req=True) | |
# Make some FIFOs, where one end is inherited across execve() | |
r, w = os.pipe() | |
fcntl.fcntl(r, F_SETFD, fcntl.fcntl(r, F_GETFD) & ~FD_CLOEXEC) |
#!/bin/sh | |
echo "Hello world!" |
#!/bin/bash | |
# dlitz 2022 | |
# SPDX-License-Identifier: CC0-1.0 | |
set -eu | |
usage() { | |
echo "usage: $0 [-v] inputfile.djvu output-dir" | |
echo "Split a DjVu document into multiple pages, one per file." | |
echo "Use djvm -c to reassemble the file." |
#!/bin/bash | |
# dlitz 2022 | |
# This tests 'btrfstune -m' (change metadata_uuid) followed by 'btrfs scrub'. | |
# Apparently, changing the metadata_uuid causes btrfs scrub to spew | |
# uncorrectable errors, even on an empty filesystem. | |
# Changing the metadata_uuid back to the old value makes 'btrfs scrub' happy | |
# again. | |
set -eu |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# Note: PS1 and umask are already set in /etc/profile. You should not | |
# need this unless you want different defaults for root. | |
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' | |
# umask 022 | |
# You may uncomment the following lines if you want `ls' to be colorized: | |
export LS_OPTIONS='--color=auto' | |
eval "$(dircolors)" |
# Example ~/.ssh/config | |
# Used with something like: | |
# sshfs -o rw,reconnect,auto_unmount,noatime,idmap=user,allow_root _sshfs.syra.dlitz.net:~/ ~/mnt/syra | |
Host _sshfs.syra.dlitz.net | |
HostKeyAlias syra.dlitz.net | |
HostName syra.dlitz.net | |
ProxyCommand none | |
ControlPath none | |
ServerAliveCountMax 2 |