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
"Fiction" titles for Lund (Audio)Book Club Meetup Group 20240318 | |
Waris Dirie, Cathleen Miller - Desert Flower (1998) {256pp} [https://www.goodreads.com/book/show/8745.Desert_Flower] | |
Sarah Bradford - Queen Elizabeth II: Her Life in Our Times (2011) {320pp} [https://www.goodreads.com/book/show/13153168] | |
Alan Cumming - Not My Father's Son (2014) {292pp} [https://www.goodreads.com/book/show/22934446] | |
Michelle Obama - Becoming (2018) {426pp} [https://www.goodreads.com/book/show/38746485] | |
Gregory Zuckerman - The Man Who Solved the Market: How Jim Simons Launched the Quant Revolution (2019) {359pp} [https://www.goodreads.com/book/show/43889703] | |
Barack Obama - A Promised Land (2020) {768pp} [https://www.goodreads.com/book/show/55361205] | |
Dave Grohl - The Storyteller: Tales of Life and Music (2021) {384pp} [https://www.goodreads.com/book/show/57648017] | |
James B. Stewart and Rachel Abrams - Unscripted: The Epic Battle for a Media Empire and the Redstone Family Legacy (2023) {416pp} [https://www.goodreads.com/book/show/6 |
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
function pdmn-ps() { | |
# With this one can do like, given a container called tor-client, | |
# kill -HUP $(pdmn-ps tor-client | \ | |
# grep -F ' tor -f /config/torrc --defaults-torrc /config/torrc.custom.default' | \ | |
# awk '{ print $2 }') | |
# Useful for when one has both a client and a relay, and has a smaller overhead than exec-ing into the container. | |
local container_pid | |
[[ -n "${1}" ]] && podman container exists "${1}" && { \ | |
container_pid=$(podman inspect --format '{{.State.Pid}}' "${1}") | |
ps -o 'user,pid,%cpu,%mem,vsz,rss,tty,stat,lstart,time,command' \ |
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 | |
# Intermittently, the routing of WireGuard datagrams seem to become confused, leading to temporarily hung connections. | |
# This script aims to remedy this - assuming that the OpenWRT system is a | |
# WireGuard peer that uses the port(s) listed in WG_PORTS. E.g. (/etc/config/network): | |
# config interface 'wg0' | |
# option proto 'wireguard' | |
# option listen_port '51820' | |
# ... | |
# |
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
function ln-fee-info() { | |
pgrep -u lightning -f '^/usr/bin/lightningd\s.*' &> /dev/null && { \ | |
function o() { | |
if [[ "${1}" =~ ^.*1$ ]]; then echo "st" | |
elif [[ "${1}" =~ ^.*2$ ]]; then echo "nd" | |
elif [[ "${1}" =~ ^.*3$ ]]; then echo "rd" | |
else echo "th"; fi | |
} | |
local -i M N f n p x; local percentile j j_c t x_v; local -A T | |
local b=$(/usr/bin/timeout -k 35s 30s /usr/bin/lightning-cli --rpc-file=/run/lightning/lightningd.rpc getinfo | jq -r .blockheight) |
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
{ | |
"# version": "23.05-gentoo-r0", | |
"conf": "/etc/lightning/lightningd.conf", | |
"lightning-dir": "/var/lib/lightning", | |
"network": "bitcoin", | |
"allow-deprecated-apis": true, | |
"rpc-file": "/run/lightning/lightningd.rpc", | |
"plugins": [ | |
{ | |
"path": "/usr/bin/clboss", |
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
ipc-namespace | |
dbus-user.talk org.freedesktop.portal.Fcitx | |
dbus-user.talk org.freedesktop.portal.Background | |
dbus-user.talk org.freedesktop.Notifications | |
dbus-user.talk org.kde.StatusNotifierWatcher | |
dbus-user.own org.kde.* | |
env SIGNAL_DISABLE_GPU=0 | |
env SIGNAL_DISABLE_GPU_SANDBOX=0 |
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 | |
# Usage: sdparm-disable_sleep.sh <device> | |
[[ -n "${1}" && -b "${1}" ]] \ | |
&& sdparm --flexible --page=po -l -a "${1}" \ | |
&& { sdparm --set=STANDBY_Z=0 -S "${1}" \ | |
&& sdparm --set=SZCT=$((45*60*100)) -S "${1}" \ | |
&& sdparm --flexible --page=po -l -a "${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 | |
BASENAME=$(basename "${0}"); DIRNAME=$(dirname "${0}"); DIRNAME=$(realpath "${DIRNAME}"); | |
VERSION=$(grep -oP '(?<=imgbuilder-)[0-9\.]+(?=-)' <<< "${BASENAME}") | |
ARCH=$(sed -E 's@^imgbuilder-[0-9\.]+-@@' <<< "${BASENAME}" | grep -oP '^[^-]+') | |
TYPE=$(sed -E 's@^imgbuilder-[0-9\.]+-@@; s@'"${ARCH}"'-@@' <<< "${BASENAME}" | grep -oP '^[^\.]+') | |
[[ -n "${VERSION}" && -n "${ARCH}" && -n "${TYPE}" ]] || exit 255 | |
[[ ! -x "${DIRNAME}/imgbuilder-get-base-path.sh" ]] || source "${DIRNAME}/imgbuilder-get-base-path.sh" | |
[[ -n "${OPENWRT_IMG_BUILDER_BASE_PATH}" ]] || OPENWRT_IMG_BUILDER_BASE_PATH="${DIRNAME}/openwrt-imagebuilder-${ARCH}-${TYPE}" |
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
# Usage: ( VERSION="19.07.9" && ARCH="ar71xx" && TYPE="tiny" && cd "${OPENWRT_BUILD_DIR}" && \ | |
# wget -O './.config' "https://downloads.openwrt.org/releases/${VERSION}/targets/${ARCH}/${TYPE}/config.buildinfo" && \ | |
# cat "${THIS_FILE}" >> ./.config && make defconfig ) | |
CONFIG_TARGET_ar71xx=y | |
CONFIG_TARGET_ar71xx_tiny=y | |
CONFIG_TARGET_ar71xx_tiny_DEVICE_tl-mr3420-v2=y | |
CONFIG_ALL_KMODS=y | |
CONFIG_ALL_NONSHARED=y | |
CONFIG_DEVEL=y | |
CONFIG_AUTOREMOVE=y |
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 | |
# Copyright (C) 2006 OpenWrt.org | |
# Copyright (C) 2010 Vertical Communications | |
# To be included in ROM image, together with at least usb-modeswitch, | |
# kmod-usb-storage and a /etc/usb-mode.preinit.json. | |
# | |
# Tested on OpenWRT v19.07.3 | |
log_usbmode() { |
NewerOlder