Skip to content

Instantly share code, notes, and snippets.

View yoshi314's full-sized avatar

Marcin Kowalski yoshi314

  • PL
View GitHub Profile
@yoshi314
yoshi314 / youtube-dl-playlist
Created January 6, 2022 11:19
youtube-parallel-playlist-download
#!/bin/bash
# download youtube playlist in multithreaded fashion
YOUTUBE_DL=yt-dlp
YOUTUBE_DL_ARGS="-x --audio-format mp3 --add-metadata"
JOBS=10
tempfile=$(mktemp)
@yoshi314
yoshi314 / jks-certificate-expiry-checker.sh
Last active July 12, 2022 09:34 — forked from zatarra/jks-certificate-expiry-checker.sh
Small script to check the expiry of all the certificates inside a java keystore.
#!/bin/sh
########################################################
#
# Check certificates inside a java keystore
#
# modifications: better whitespace handling in alias,
# extracts the valid certificates to the disk
########################################################
TIMEOUT="timeout -k 10s 5s "
@yoshi314
yoshi314 / tape-arc-progress.sh
Created September 28, 2023 12:05
Tape backup script with % capacity tracking per-tape (across sessions)
#!/bin/sh
die() {
echo $@
exit 1
}
which bc || die "no bc found"
if [ $# -lt 2 ] ; then