Skip to content

Instantly share code, notes, and snippets.

View mia-riezebos's full-sized avatar
🥶
this is my film, you're an extra

Mia Riezebos mia-riezebos

🥶
this is my film, you're an extra
View GitHub Profile
@mia-riezebos
mia-riezebos / exiftool-music-organizer.sh
Last active August 14, 2023 17:34
organizing your music using exiftool
#!/bin/bash
# exiftool music organizer
# this generates an "artist/album/song"-organized music library (based on metadata)
# it also moves and renames songs into this library based on metadata
# IN/OUT
read -p "Input Directory: " -e INPUT_DIR
read -p "Output Directory: " -e OUTPUT_DIR
@mia-riezebos
mia-riezebos / reconvert.sh
Last active January 6, 2022 20:41
Recursive converter using ffmpeg (example uses flac -> m4a/alac)
#!/bin/bash
# assembled & improved by mia-cx
# sources used:
# - https://superuser.com/a/1307579
# - https://stackoverflow.com/a/31605674
# - https://stackoverflow.com/a/965072
# read relative "working" directory
read -e -p "Working directory: " -i "./" RELDIR
@mia-riezebos
mia-riezebos / artist-album-title-ext
Last active February 15, 2022 01:30
MusicBrainz Picard tagger script (artist/album/title.ext)
$set(__year,$left(%date%,4))
$set(__publisher,$if($and($eq(%albumartist%,Various Artists),%label%),$rreplace(%label%,[/_:],-),$rreplace(%albumartist%,[/_:],-)))
$set(__releasegroup,$if(%albumartist%,$rreplace(%album%,[/_:],-)))
$set(__trackno,$if($gt(%totaldiscs%,1),%discnumber%-,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) , ))
$set(__title,$rreplace($if(%_multiartist%,%artist% - ,)%title%,[/_:],-))
%__publisher%/%__year% - %__releasegroup%/%__trackno%%__title%
@mia-riezebos
mia-riezebos / playback-reporter.atf
Last active February 15, 2022 01:30
A good-looking, functional ATF format for twitter playback reporting, using WACUP
$puts(_title,$iflonger($put(_title,[%artist% - ]$if2(%title%,$filepart(%filename%))),81,$cut($get(_title),78)...,$get(_title)))
$puts(_album,[from: %album%][ '('%year%')'])
$puts(_link,$if(%comment%,$split($substr(%comment% nolink,$if2($ifgreater($strstr(%comment%,https://),0,$strstr(%comment%,https://),)$ifgreater($strstr(%comment%,http://),0,$strstr(%comment%,http://),),$add($len(%comment%),2)),), ,0),nolink))
$puts(_rating,$if(%rating%,$repeat(★,%rating%)$repeat(☆,$sub(5,%rating%)),unrated))
'♬♫♪ ◖( ˘ ɜ˘ )◗ ♪♫♬'
$get(_title)
$get(_album)
@mia-riezebos
mia-riezebos / unfollow-sc.js
Last active August 23, 2022 04:28 — forked from egeste/unfollow-sc.js
Unfollow all on soundcloud
// 1. go to your profile
// 2. click the "Following" count
// 3. open the browser console
// 4. copy and paste this code into the console
// 5. profit :3
// (6. follow me on https://soundcloud.com/patchstep)
var scriptName = "unfollow-sc.js";
var authorName = "Patch";
var authorUrls = [
NNAA NNAB NNAC NNAD NNAE NNAF NNAG NNAH NNAI NNAJ NNAK NNAL NNAM NNAN NNAO NNAP NNAQ NNAR NNAS NNAT NNAU NNAV NNAW NNAX NNAY NNAZ
nnAa nnAb nnAc nnAd nnAe nnAf nnAg nnAh nnAi nnAj nnAk nnAl nnAm nnAn nnAo nnAp nnAq nnAr nnAs nnAt nnAu nnAv nnAw nnAx nnAy nnAz
NNA0 NNA1 NNA2 NNA3 NNA4 NNA5 NNA6 NNA7 NNA8 NNA9
NNA! NNA# NNA( NNA) NNA+ NNA, NNA- NNA. NNA/ NNA: NNA; NNA= NNA? NNA@ NNA[ NNA] NNA_ NNA© NNA℗
NNBA NNBB NNBC NNBD NNBE NNBF NNBG NNBH NNBI NNBJ NNBK NNBL NNBM NNBN NNBO NNBP NNBQ NNBR NNBS NNBT NNBU NNBV NNBW NNBX NNBY NNBZ
nnBa nnBb nnBc nnBd nnBe nnBf nnBg nnBh nnBi nnBj nnBk nnBl nnBm nnBn nnBo nnBp nnBq nnBr nnBs nnBt nnBu nnBv nnBw nnBx nnBy nnBz
NNB0 NNB1 NNB2 NNB3 NNB4 NNB5 NNB6 NNB7 NNB8 NNB9
NNB! NNB# NNB( NNB) NNB+ NNB, NNB- NNB. NNB/ NNB: NNB; NNB= NNB? NNB@ NNB[ NNB] NNB_ NNB© NNB℗
@mia-riezebos
mia-riezebos / OBOT.sh
Last active March 16, 2024 12:03
My Obsessively Balanced & Optimized Transcode script, using FFMPEG.
# [O]bsessively [B]alanced & [O]ptimized [T]ranscode script
ffmpeg -i <input> \ # select input video file
-vsync 0 # prevent FFmpeg from creating output YUV with duplicate and extra frames.
-hwaccel cuda # enable hardware acceleration using cuda
-hwaccel_output_format cuda # unclear- read https://docs.nvidia.com/video-technologies/video-codec-sdk/12.0/ffmpeg-with-nvidia-gpu/index.html
-c:v hevc_nvenc -preset p7 -tune hq \ # NVENC HEVC encoder, preset p7 (slowed, best quality), tune for high quality
-cq:v 23 \ # constant quality (CRF equivalent) of 23 (decent quality, great compression)
-rc:v vbr \ # use Variable Bit Rate (VBR) for rate control mode
-rc-lookahead:v 4 \ # look 4 frames ahead for VBR compression optimization