I hereby claim:
- I am tdussa on github.
- I am tdussa (https://keybase.io/tdussa) on keybase.
- I have a public key ASBS4LiW7Cj0jhMVu7obvVE6E9g6rsJEKKudNWoitEVMFgo
To claim this, I am signing this object:
1. Load the PDF with evince. | |
2. Enable the side pane, if disabled ("View" -> "Side Pane" or <F9>). | |
3. At the top of the side pane, select "Annotations" from the drop-down. | |
4. Select "Add". | |
5. Select the edit icon below. | |
6. Add annotation to PDF. |
#!/usr/bin/env python | |
import fileinput | |
def shipout(aerodrome, count, pdfstring): | |
file = open(aerodrome + '_' + str(count) + '.pdf', 'w') | |
file.write(pdfstring) | |
count = 0 | |
aerodrome = '' |
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/env python | |
from time import sleep | |
import sys | |
import contextlib | |
import numpy | |
import pygame | |
channels = 2048 # number of audio channels |
This is meant to be a somewhat-easier-to-digest recap of the discussion that can be found on the MikroTik forum at this URL: https://forum.mikrotik.com/viewtopic.php?f=23&t=157048&p=836497&hilit=failover#p836497 Note that the forum discussion not only addresses failover, but also load balancing at the same time (without explicitly saying so in the beginning).
For the sake of this document, we'll make some assumptions:
#! /bin/sh | |
if [ -z "$1" ]; then | |
echo "Missing argument! Usage:" | |
echo -e "\t$0 <time string>" | |
exit 1 | |
fi | |
TARGET=$(date -d"$1" "+%s") | |
TOGO=$((TARGET-$(date "+%s"))) |
This VisiData script is meant to take a number of CSV files containing vaccination information and mangle the data to create a nice overview.
The input data is expected in the format seen in the sample files.
To use, just load it with vd -p Vaccination_Status_Overview.vd
; to add or remove persons, the script itself needs to be edited.
Update: Refactoring so that the duration until the next refresher shot is calculated and displayed. An additional column in the data files is needed that contains the time to the next refresher in weeks; if that column is empty, that vaccination shot is assumed to be final without any more required refreshers.
Update: Added a colorized version of the overview -- just use Vaccination_Status_Overview-colorized.vd
instead of Vaccination_Status_Overview.vd
. Dates are displayed in red if the target refresh date has passed, in yellow if the target refresh date is 26 weeks or less ahead, and in green otherwise.
#! /bin/sh | |
DOTFILES=".aliases .extend.bashrc .zshrc.local" | |
EXTENDFILES=".bashrc .zshrc .zshrc.pre" | |
PROFILEFILES="colorized_root_prompt.sh history_extend_size.sh history_timestamp.sh timestamped_prompt.sh timestamped_root_prompt.sh" | |
FILES="${DOTFILES} ${EXTENDFILES} ${PROFILEFILES}" | |
mkdir bin git | |
cd git |
When building the package, select cleanBuild
, edit the PKGBUILD
file and add this code verbatim right before the build()
function:
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 <<'EOF'
From 82ef1fb08c0aec56999e89c8d355d74bdbf9788a Mon Sep 17 00:00:00 2001
From: FuzzyNovaGoblin <[email protected]>
Date: Wed, 15 Feb 2023 18:44:07 -0500