Skip to content

Instantly share code, notes, and snippets.

@Wikinaut
Wikinaut / get-elv.sh
Created December 25, 2023 12:08
ELV Journal 1979-2023
#!/bin/bash
i=1979
for j in 00 01 02 03 04 05 06; do
wget --content-disposition https://files2.elv.com/public/downloads/journal/elvjournal_${i}_${j}.pdf
done
i=1980
for j in 07 08 09 10 11 12; do
@Wikinaut
Wikinaut / elv-urls.txt
Last active December 25, 2023 12:05
ELV Journal 1979-2023 wget --content-disposition
https://files2.elv.com/public/downloads/journal/elvjournal_1979_00.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1979_01.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1979_02.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1979_03.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1979_04.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1979_05.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1979_06.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1980_07.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1980_08.pdf
https://files2.elv.com/public/downloads/journal/elvjournal_1980_09.pdf
@Wikinaut
Wikinaut / get-20er-jahre-sendungen
Created December 21, 2023 23:09
Get "Die 20er Jahre" RBB 2023. 21 Folgen mp3 und pdf Manuskripte
#!/bin/bash
f="wget -O Die_20er_Jahre_(Kai_Luehrs-Kaiser)_RBB_2023"
$f-01.mp3 https://rbbmediapmdp-a.akamaihd.net/content/47/8d/478d1bc9-e2c4-4801-8a6c-eaebd209de27/51ef7d75-0db8-4680-85ef-75d5c975e474_90f8b40a-9153-4e30-a453-c004aa06b6ee.mp3
$f-02.mp3 https://rbbmediapmdp-a.akamaihd.net/content/18/23/182393d3-e454-4261-942b-428ddaf86f0d/f8509f50-fd2a-4ffb-876e-d3998c114257_d1b4400e-9573-4847-bfa1-cad4c31437e1.mp3
$f-03.mp3 https://rbbmediapmdp-a.akamaihd.net/content/c6/49/c6496c80-982d-48b7-a353-046bccc5695d/6409df3c-440c-4d25-b935-25bda62d8437_95b9d5ec-1274-4da3-b1f6-660d13ce1e7f.mp3
$f-04.mp3 https://rbbmediapmdp-a.akamaihd.net/content/5c/19/5c196cb7-0152-49b2-a4f8-06a51c939cc9/16dd4d89-5a88-4c7a-9016-a681d0a90941_e0e06245-99df-4aa2-bb97-7f8d28e4c6bd.mp3
$f-05.mp3 https://rbbmediapmdp-a.akamaihd.net/content/95/f2/95f22425-a131-4830-ace3-28c638c1938a/c213b17d-332a-4111-98bf-cd31de57bbd1_14d5a7d0-55bd-4280-b1c0-c3fe48097056.mp3
$f-06.mp3 https://rbbmediapmdp-a.akamaihd.net/content/bd/ff/bdff4e62-7e4c-47f4-
@Wikinaut
Wikinaut / make-tifpdf
Last active January 25, 2023 15:59
make-tifpdf: create a 600 dpi pdf with 1-bit-tiff images and with colored 300 dpi jpg front and back cover pages for use on bitsavers.org
#!/usr/bin/bash
# init 20230124
if [ $# -lt 1 ] ; then
echo "make-tifpdf: create a 600 dpi pdf with 1-bit-tiff images for uploading scans to → bitsavers.org"
echo "Usage: make-tifpdf <infile.pdf> [outfile.pdf]"
echo
exit
fi
This file has been truncated, but you can view the full file.
http://bitsavers.org/bits/0.zip
http://bitsavers.org/bits/1.0000644
http://bitsavers.org/bits/1982.IMG
http://bitsavers.org/bits/1982.jpg
http://bitsavers.org/bits/1997.img
http://bitsavers.org/bits/1.IMAGE
http://bitsavers.org/bits/1.txt
http://bitsavers.org/bits/2.0000644
http://bitsavers.org/bits/2006.html
http://bitsavers.org/bits/2.0.txt
@Wikinaut
Wikinaut / transcribe
Last active February 17, 2023 11:20
Transcription with whisper.cpp
# build (onyl needed once)
git clone https://github.com/ggerganov/whisper.cpp.git
cd whisper.cpp/
make
./models/download-ggml-model.sh large
# transcribe
x=audio-infile.mp3 / aac / wma / wav
@Wikinaut
Wikinaut / getbitsavers.sh
Last active January 11, 2023 16:32
Fetch and sort the description files from bitsavers.org according to manufacturers' names
#!/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
@Wikinaut
Wikinaut / build-whisper.sh
Last active January 7, 2023 21:32
build-whisper
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
@Wikinaut
Wikinaut / make-nxm.sh
Created December 28, 2022 15:31
Make nxm
#! /bin/bash
# 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]
if [ $# -lt 3 ] ; then
echo
echo "Create a composed n x m image from a single image"
@Wikinaut
Wikinaut / patch-parsed-twitter-archive.sh
Last active December 19, 2022 12:10
patch-parsed-twitter-archive
#!/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