Users should be named with the suffix "-restic", e.g. "host1-restic"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Hello world!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sys.platform should return "linux2" even if the system was compiled on Linux 3.x or later. | |
diff -ru Python-2.2.3.orig/configure Python-2.2.3/configure | |
--- Python-2.2.3.orig/configure 2003-03-29 14:25:14.000000000 -0800 | |
+++ Python-2.2.3/configure 2014-02-22 14:37:36.540457776 -0800 | |
@@ -641,6 +641,8 @@ | |
MACHDEP="$ac_md_system$ac_md_release" | |
case $MACHDEP in | |
+ linux1) MACHDEP="linux1";; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Inspired by the vmware-any-any-update series of patches | |
set -e | |
ws_ver=`vmware-installer -l | grep vmware-workstation | awk '{ print $2 }' | cut -d. -f1-3` | |
if [ -z "$ws_ver" ] ; then | |
echo >&2 "$0: error: VMware Workstation not installed?" | |
exit 1 | |
fi |
NewerOlder