- power strip („Mehrfachsteckdose“)
- Qurious Queryboo
- swimming trunks, on the chance that there’s a pool around (they don’t take up much room)
- …?
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
/** | |
* Set the transaction status of all items by the current user to the given status. | |
*/ | |
async function setTransaction(transaction) { | |
const userId = await fetch('https://inventaire.io/api/user', { credentials: 'include' }) | |
.then(response => response.json()) | |
.then(json => json._id); | |
const items = await fetch(`https://inventaire.io/api/items?action=by-users&users=${userId}`) | |
.then(response => response.json()) | |
.then(json => json.items); |
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 | |
while IFS=$'\t' read -r lid language lemma; do | |
if [[ $lemma = *' '* ]]; then | |
printf '%s\t%s\t%s\n' "$lid" "$language" "$lemma" | |
fi | |
done |
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
# /etc/systemd/system/openrefine.service | |
[Unit] | |
Description=OpenRefine data reconciliation tool | |
Documentation=http://openrefine.org/ | |
[Service] | |
ExecStart=/opt/openrefine-2.8/refine -d %S/%p -x refine.headless=true | |
DynamicUser=yes | |
NoNewPrivileges=yes | |
StateDirectory=%p |
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
.PHONY: all | |
all: lilypond.pdf | |
%.tex: %.lytex | |
lilypond-book --pdf $< | |
%.pdf: %.tex | |
pdflatex $< |
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
# /etc/systemd/system/geoclue.service.d/sandbox.conf | |
# I have no idea what this service needs, but hopefully we can at least sandbox it a little bit… | |
[Service] | |
RuntimeDirectory=%p | |
ProtectSystem=strict | |
ProtectHome=yes | |
InaccessiblePaths=-/etc/shadow -/etc/gshadow -/var/lib/sudo -/etc/ssh -/etc/opendkim -/var/lib/tor | |
PrivateTmp=yes | |
ProtectKernelTunables=yes | |
ProtectControlGroups=yes |
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
.PHONY: all | |
CFLAGS := -Wall -Wextra -Wpedantic -Werror | |
all: the-score.pdf | |
the-score.pdf: the-score.ly lilypond-git | |
./lilypond-git $< $@ | |
# based on Make’s implicit rule, search for %: in make -p |
The \displaceHeads
command from LilyPond snippet 861 doesn’t work correctly with notes that have beams – it removes the beam, probably due to a LilyPond bug (see here for details).
This version can be used instead – it’s not as correct (the width of the beam is hard-coded), but it seems to work.
(Only use it if you’re actually affected by this problem, of course, otherwise stick with the original!)
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
.PHONY: all | |
CFLAGS := -std=c99 -Wall -Wextra -Wpedantic | |
all: countdown |