View Glass.osl
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
#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), |
View jellyfinConversion.sh
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 | |
shopt -s globstar | |
src_dir="MoviesSource" | |
dest_dir="Movies" | |
mkdir "$dest_dir" | |
for f in "${src_dir}"/**/*.*; do |
View audioConversion.sh
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 | |
shopt -s globstar | |
src_dir="audio" | |
dest_dir="audio_new" | |
mkdir "$dest_dir" | |
for f in "${src_dir}"/**/*.wav; do |
View audioConversionStructured.sh
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 | |
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%/*} |