I hereby claim:
- I am schtobia on github.
- I am schtobia (https://keybase.io/schtobia) on keybase.
- I have a public key whose fingerprint is BA97 2630 7B2C C314 33AE F496 6BA9 A5C0 5D01 15D2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
map $ssl_client_s_dn $ssl_client_s_dn_cn { | |
default ""; | |
~/CN=(?<CN>[^/]+) $CN; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
listen 443 ssl; |
#! /bin/sh | |
[ ! -d "$1" ] && echo "$1 is not a valid directory." && exit 1; | |
trap "umount \"${1}\"/tmp \"${1}\"/dev/null \"${1}\"/dev/pts \"${1}\"/dev/random \"${1}\"/dev/shm \"${1}\"/dev/urandom \"${1}\"/proc" EXIT INT TERM HUP PIPE && | |
mount --bind /tmp "${1}/tmp" && \ | |
mount --bind /dev/null "${1}/dev/null" && \ | |
mount --bind /dev/pts "${1}/dev/pts" && \ | |
mount --bind /dev/random "${1}/dev/random" && \ | |
mount --bind /dev/shm "${1}/dev/shm" && \ | |
mount --bind /dev/urandom "${1}/dev/urandom" && \ | |
mount --bind /proc "${1}/proc" && \ |
#! /bin/sh | |
for current_signal in HUP TERM KILL SEGV; | |
do | |
ZOMBIES=$(ps -A -ostat,ppid | sed -rn 's/^[zZ][^[:space:]]*[[:space:]]*([0-9]+)/\1/p' | sort -nu); | |
[ -n "$ZOMBIES" ] && { kill -s $current_signal $ZOMBIES; sleep 2; } || true; | |
done |
#! /bin/bash | |
[ -z "$1" ] && { (>&2 echo "Usage: $0 <backup.tar>"); exit 1; } | |
touch "$1" || { (>&2 echo "Cannot write to $1"); exit 1; } | |
find /etc -type f | grep -vFf <(debsums -e 2>/dev/null | sed 's/[[:space:]]*OK$//') | xargs tar cf "$1" 2>/dev/null |
#! /usr/bin/env python3 | |
import logging | |
import logging.handlers | |
logger = logging.getLogger("foo") | |
logger.setLevel(logging.DEBUG) | |
logger.addHandler(logging.handlers.SysLogHandler('/dev/log')) | |
logger.info("foobar") |
check if dex
is installed:
vimes ~ » [ -x "$(which dex)" ] && echo "Dex is installed." || echo "Dex is not installed."
Dex is not installed.
vimes ~ »
so, install dex
:
vimes ~ » sudo apt install dex
#! /bin/sh | |
[ "$#" -lt 2 ] && { echo "Usage: $0 <outputfile> <inputfile> ..."; exit 1; } | |
output_file="$1" | |
shift | |
gs -dBATCH -dNOPAUSE -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -o "$output_file" $@ |
#!/bin/bash | |
# Usage: debdiffconf.sh <filename> | |
# Produce on stdout, a diff of <filename> against the first installed Debian | |
# package found that provides it. | |
# Returns the exit code of diff if everything worked, 3 or 4 otherwise. | |
base_name=$(basename $0) | |
required=( apt-get apt-file diff dpkg-deb dpkg-query realpath) |
--- | |
version: "3.7" | |
services: | |
motioneye: | |
image: ccrisan/motioneye:master-armhf | |
init: true | |
ports: | |
- "8081:8081" | |
- "80:8765" | |
environment: |