terminal:miscbash
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
terminal:miscbash [2025/08/16 01:32] – external edit 127.0.0.1 | terminal:miscbash [2025/08/17 16:08] (current) – makemkv workaround no longer needed melo | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== misc bash terminal stuff ===== | ===== misc bash terminal stuff ===== | ||
- | move files from nested sub-folders | + | aliases and stuff |
+ | |||
+ | ==== number | ||
+ | |||
+ | <code bash> | ||
+ | i=29 # add 1 to last number in batch | ||
+ | for f in *.png; do | ||
+ | | ||
+ | mv " | ||
+ | | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | ==== push to all git remotes ==== | ||
+ | |||
+ | i'm lazy ok | ||
+ | |||
+ | <code bash> | ||
+ | alias gitall=" | ||
+ | </ | ||
+ | |||
+ | ==== youtube to MP3 === | ||
+ | |||
+ | what the comment says | ||
+ | |||
+ | <code bash> | ||
+ | # lazy ass way for me to get my idol mp3s from youtube | ||
+ | # usage: ytmp3 url | ||
+ | alias ytmp3=" | ||
+ | </ | ||
+ | |||
+ | ==== move nested files to top-level dir ==== | ||
(this will overwrite files with same names so rename with filebot beforehand if needed) | (this will overwrite files with same names so rename with filebot beforehand if needed) | ||
- | < | + | i use this for counting icons usually, hence the alias name |
+ | |||
+ | < | ||
+ | alias iconsubfol=" | ||
+ | </ | ||
+ | |||
+ | ==== PDF to PNG ==== | ||
+ | |||
+ | not used in a while | ||
+ | |||
+ | <code bash> | ||
+ | gs -sDEVICE=pngalpha -o file-%03d.png -r144 zine.pdf | ||
+ | </ |
terminal/miscbash.1755307951.txt.gz · Last modified: by 127.0.0.1