This file contains 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
#!/usr/bin/env python3 | |
# climbing_stats.py - Compute climbing stats from Google location history | |
# | |
# Author: Amber Sprenkels <[email protected]> | |
# Date: 2024-03-12 | |
# | |
# This scripts computes the number of times I went to a local climbing or | |
# bouldering gym close to where I live, based on my Google location history. |
This file contains 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 | |
# install.sh | |
# | |
# Installation instruction for getting Ethan's Dilithium code up and running. | |
# | |
# Author: Amber Sprenkels <[email protected]> | |
# Date: 17 May 2022 | |
# shellcheck disable=SC2164,SC2155 |
This file contains 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 | |
# Do a nightly build of LLVM master. | |
# | |
# Author: Daan Sprenkels <[email protected]> | |
set -e | |
WORKSPACE="$1" |
This file contains 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
*.py |
This file contains 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 | |
readonly txtfile="$(mktemp "print-plaintext.XXXXXXXXXX.txt")" | |
readonly pdffile="${txtfile/.txt/.pdf}" | |
cat "$@" >"$txtfile" | |
libreoffice --convert-to "pdf" "$txtfile" | |
lpr "$pdffile" |
This file contains 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 | |
readonly OUTPUT_FMT="%(uploader)s [%(upload_date)s] - %(title)s.%(ext)s" | |
readonly COOKIES_FILE="$(dirname "$0")/.config/cookies.txt" | |
readonly ONLY_DOWNLOAD_LAST_N="10" | |
SYNC="0" | |
if [ "$1" = "sync" ]; then | |
# Add a channel; i.e. prefill the cache | |
SYNC="1" |
This file contains 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 | |
mv /usr/lib/cups/backend/smb /usr/lib/cups/backend/smb.dist | |
echo >/usr/lib/cups/backend/smb <<EOF | |
#!/bin/bash | |
/usr/bin/smbspool "" "$@" | |
EOF | |
chmod 755 /usr/lib/cups/backend/smb |
This file contains 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
Iterations: 100 | |
Instructions: 4200 | |
Total Cycles: 1406 | |
Dispatch Width: 4 | |
IPC: 2.99 | |
Block RThroughput: 13.0 | |
Instruction Info: | |
[1]: #uOps |
This file contains 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 | |
DIR="$(mktemp --directory)" && (wget --quiet --spider --tries=20 --recursive --directory-prefix="$DIR" "https://codimd.example.com/"; rm -rf "$DIR") |
This file contains 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 | |
# csd-power-watchdog | |
# | |
# Description: check if csd-power is quiet and restart if it is | |
# Author: Daan Sprenkels <[email protected]> | |
# | |
# On my system, csd-power often locks up when closing the lid of my laptop | |
# when an external monitor is attached. This script is a watchdog to kick | |
# the csd-power daemon if it looks unresponsive. |
NewerOlder