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
# "#1" and "#2"are like sed groups | |
curl url{foo,bar}_[1-42] --output "#1_#2.jpg" --cookie "NAME1=VALUE1;NAME2=VALUE2" | |
# or | |
curl url{foo,bar}_[1-42] -o "#1_#2.jpg" -b "NAME1=VALUE1;NAME2=VALUE2" | |
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 | |
brew install imagemagick | |
convert *.jpg output.pdf |
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 | |
while read file; | |
do | |
touch -r "${file}" "${file%.flac}.mp3"; | |
done < <(ls *.flac) |
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 | |
for p in $(pip list --outdated | awk -F ' ' 'NR>2{print $1}') | |
do pip install --upgrade $p | |
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
#!/bin/bash | |
# source: https://superuser.com/a/764524 | |
# Managed formats: | |
# <xmp:CreateDate>2017-07-19T08:53:29Z</xmp:CreateDate> | |
# <xmp:CreateDate>2017-10-16T12:07:43+02:00</xmp:CreateDate> | |
# xmp:CreateDate="2013-09-03T17:37:08+02:00" | |
for f in *.pdf | |
do |
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
# audio | |
youtube-dl -x --audio-format mp3 --audio-quality 0 --embed-thumbnail --add-metadata -o "%(title)s-%(id)s.%(ext)s" -- URL | |
yt-dlp -x --audio-format mp3 --audio-quality 0 --embed-thumbnail --add-metadata --metadata-from-title "%(artist)s - %(title)s" -o "%(artist)s - %(title)s - %(id)s.%(ext)s" -- URL | |
# video | |
youtube-dl -f best -o "%(title)s-%(id)s.%(ext)s" -- URL | |
yt-dlp -f best -o "%(title)s-%(id)s.%(ext)s" -- URL |
OlderNewer