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
# -------------------------------------------------------------------- | |
# Recursively find pdfs from the directory given as the first argument, | |
# otherwise search the current directory. | |
# Use exiftool and qpdf (both must be installed and locatable on $PATH) | |
# to strip all top-level metadata from PDFs. | |
# | |
# Note - This only removes file-level metadata, not any metadata | |
# in embedded images, etc. | |
# | |
# Code is provided as-is, I take no responsibility for its use, |
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 | |
# | |
# This git hook should let us prevent commits from containing words that we sometimes use | |
# as "sky is blue" proof that a method is working when it's behaving strangely. | |
disallowed="poop fart poopy farty shit fuck" | |
git diff --cached --name-status | while read x file; do | |
if [ "$x" == 'D' ]; then continue; fi | |
for word in $disallowed |
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 -l data_status (curl -s https://iceportal.de/api1/rs/status) | |
set -l data_trip (curl -s https://iceportal.de/api1/rs/tripInfo/trip) | |
# next stop | |
echo (echo $data_trip | jq -r '([ .trip.stops[] | select(.info.passed==false) ] | |
| first).station.name') | |
# train number | |
echo (echo $data_trip | jq -r '"\(.trip.trainType)-\(.trip.vzn)"') | |
# speed | |
echo speed (echo $data_status | jq -r '"\(.speed) km/h"') |
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
Personally, I was never ambitious enough to spur my own descendants. | |
Yet this world and all the descendants of millions of people need to be thought about. | |
They deserve it to be left with a planet and people who are above my generation's average capacity. | |
My couple of suggestions to everyone who is involved with or has influence on the coming development: | |
1) Refrain from jealousy. Granting everything to anyone is a good start. | |
2) Don't waste your time with malicious gossip. It'll return to you rather sooner than later. | |
3) If you like someone, tell them. The day when it will be too late to speak out is coming soon. | |
4) Kindliness brings you US$ 0.00 per barrel. Sell it! |
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
cat <<EOF | |
@keyframes flakeH { | |
from { left: 0%; } | |
to { left: 100%; } | |
} | |
@keyframes flakeV { | |
from { top: 0%; } | |
to { top: 100%; } | |
} |