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
{
"name": "ts-svelte",
"extensions": [
{
"identifier": {
"id": "1yib.svelte-bundle",
"uuid": "6d9c8e9b-9355-4b87-be2f-1abc0fe1b61e"
},
"displayName": "svelte"
},
@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
@mia-riezebos
mia-riezebos / discord-sticker-ffmepg-apng.md
Last active July 24, 2023 17:40
Discord Sticker ffmpeg APNG command
$ ffmpeg -r 26 -i <file>%05d.png -plays 0 -pred 5 -f apng -vf "scale=320:320" -pix_fmt monob output.png

-r        framerate
-i        input (%05d = zero-padded digit)
-plays    APNG loop mode
              0         = infinite loop
              1         = no loop
              2-65535   = n loops
-pred     PNG filter algorithm
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 / TallyVotes.gs
Last active November 22, 2022 06:38
Tally Votes across multiple sheets of data, and weight the scores.
ACTIVE_SPREADSHEET = SpreadsheetApp.getActiveSpreadsheet();
/**
* add a menu to manually refresh the leaderboard
*/
function onOpen() {
var sheet = ACTIVE_SPREADSHEET;
var entries = [{
name: "Refresh",
functionName: "refreshLastUpdate",
@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 = [
@mia-riezebos
mia-riezebos / intro.json
Created July 14, 2022 15:26
lottie-web animationData (intro.json)
{
"v": "5.9.6",
"fr": 42,
"ip": 0,
"op": 160,
"w": 1080,
"h": 240,
"nm": "intro",
"ddd": 0,
"assets": [],
@mia-riezebos
mia-riezebos / Aleya.md
Last active June 4, 2022 21:58
D&D character backstory for my character Aleya

Aleya

The Urchin Changeling Mystic.

Aleya is a mistrusting Einzelgänger, with a knack for pick-pocketing and not standing out.

She has multiple alternate identities that she will shape-shift into as the situations require it. Most shifts happen almost automatically, as a reflex reaction to her situation. She prefers not to shift by choice, as it’s always

@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 / 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%