This file contains hidden or 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/bash | |
# init 20230111 | |
outf="bitsavers.txt" | |
server="http:\/\/bitsavers.org\/ " | |
echo "Fetch and sort the description files from bitsavers.org according to manufacturers' names to $outf" | |
wget -O - http://bitsavers.org/components/IndexByDate.txt | sed -e "s/^.* .* /${server}components\/ /" - > $outf.tmp |
This file contains hidden or 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
git clone https://github.com/ggerganov/whisper.cpp.git | |
cd whisper.cpp/ | |
make | |
./models/download-ggml-model.sh large | |
yt-dlp -o Ernst-Reuter https://www.youtube.com/watch?v=KtAaOYqRQOA | |
ffmpeg -i Ernst-Reuter.webm -ar 16000 -ac 1 -c:a pcm_s16le Ernst-Reuter.wav | |
./main -l de -m models/ggml-large.bin -f Ernst-Reuter.wav | |
yt-dlp -o gsgf https://www.youtube.com/watch?v=kPMRkQK2szI |
This file contains hidden or 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 | |
# | |
# Create a composed n x m image from a single image and | |
# use the (average) border color as inter-image (gutter) color | |
# LINUX convert \( aa.png aa.png aa.png aa.png aa.png +append \) \( aa.png aa.png aa.png aa.png aa.png +append \) -append -gaussian-blur 0.5x0.5 x.png | |
# call make-nxm <image-filename> rows columms [postfilter-command] | |
# Location of Imagemagick convert/magick: |
This file contains hidden or 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/bash | |
# Patch parsed Twitter Archiv Parser | |
# To clarify: the script does not patch the parser, but the twitter-archive-parser-parsed archive | |
# It is not modifying the parsed files themselves, but creating copies with the extension .body | |
# Postprocessor for files generated by https://github.com/timhutton/twitter-archive-parser | |
# init 18.12.2022 |
This file contains hidden or 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/bash | |
# https://stackoverflow.com/questions/38964861/how-to-remove-all-metadata-using-ffmpeg | |
ffmpeg -i "$1" -c copy -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -write_xing 0 -id3v2_version 0 "${1%.*}.id3stripped.${1#*.}" |
This file contains hidden or 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/bash | |
# 20221216 init | |
# published as https://berlin.social/@wikinaut/109541495757480127 | |
compressionquality="-q:a 7 -joint_stereo 1" | |
mono="-ac 1" | |
red="\e[1;31m" |
This file contains hidden or 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
const puppeteer = require('puppeteer'); | |
/* | |
node getedekaangebote.js | grep -E -i "bier|pils" | |
oder | |
node getedekaangebote.js | \ | |
sed -n -e '/bier\|pils/I{G};x' -e 's/\([0-9]\+\)[.]\([0-9][0-9]\)/\1,\2/;/^$/d;s/EINKAUFSLISTE/---/g' -e '/bier\|pils/I,/---/p' x.txt |
This file contains hidden or 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
ffmpeg \ | |
-stream_loop 2 \ | |
-i F74.mp4 \ | |
-i "yes-it's-puzzling-i-don't-think-i've-ever-seen-anything-quite-like-this-before.mp3" \ | |
-c copy -map 0:v:0 -c:a aac -map 1:a:0 \ | |
f74puzzling.mp4 |
This file contains hidden or 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/bash | |
# create a semi-transparent circle image with an annotation text | |
echo "circle <text> <circlesize> <fillcolor> <opacity>" | |
magick -size "$2"x"$2" \ | |
xc:none -stroke black -strokewidth 2 -fill "$3" \ | |
-draw 'circle %[fx:w/2],%[fx:h/2] %[fx:w/2],%[fx:h]' \ | |
-alpha set -channel A -evaluate Multiply "$4" +channel \ | |
-set pt %[fx:h/1.5] \ |
This file contains hidden or 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
# curl -q https://raw.githubusercontent.com/davidak/wortliste/master/wortliste.txt 2>/dev/null | sed -n "s/[Rr]ad/🚲/gp" > rad.txt | |
Absende🚲resse | |
Aktions🚲ius | |
All🚲 | |
All🚲antrieb | |
All🚲fahrzeug | |
all🚲getrieben | |
All🚲ler | |
Alterskame🚲 |