Skip to content

Instantly share code, notes, and snippets.

View MisterSirCode's full-sized avatar
🧀
Bored

Taylor Schneider MisterSirCode

🧀
Bored
View GitHub Profile
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define MAX(x, y) ((x) > (y) ? (x) : (y))
shader BaGlass(
int Sharp_Beckmann_GGX = 1,
color Reflection_Color = color(0.8, 0.8, 0.8),
float Reflection_Strength = 1.0,
float Reflection_Roughness = 0.05,
int Reflection_FromBack = 1,
color Refraction_Color = color(0.8, 0.8, 0.8),
@MisterSirCode
MisterSirCode / jellyfinConversion.sh
Created January 13, 2023 05:29
Bulk converts movies for my jellyfin server. Converts them all into a universal h.264 mp4 aac web format that should (theoretically) run on any device. It accepts any FFMPEG-capable format, and it will automatically skip conversion if the output file already exists, to save time.
#!/bin/bash
shopt -s globstar
src_dir="MoviesSource"
dest_dir="Movies"
mkdir "$dest_dir"
for f in "${src_dir}"/**/*.*; do
@MisterSirCode
MisterSirCode / audioConversionStructured.sh
Created December 23, 2022 03:59
Bulk convert WAV to CAF and sustain directory structure
#!/bin/bash
shopt -s globstar
src_dir="audio"
dest_dir="audio_new"
for orig_path in "${src_dir}"/**/*.wav; do
new_path=${orig_path/$src_dir/$dest_dir}
dir_hier=${new_path%/*}
@MisterSirCode
MisterSirCode / audioConversion.sh
Last active December 23, 2022 04:31
Bulk Convert WAV to CAF and move into root directory
#!/bin/bash
shopt -s globstar
src_dir="audio"
dest_dir="audio_new"
mkdir "$dest_dir"
for f in "${src_dir}"/**/*.wav; do