Skip to content

Instantly share code, notes, and snippets.

View MisterSirCode's full-sized avatar
🧀
Bored

Taylor Schneider MisterSirCode

🧀
Bored
View GitHub Profile
@MisterSirCode
MisterSirCode / smorfDownloaderUserscript.js
Last active June 29, 2024 13:53
Smorf.nl Model Extractor - Userscript for TamperMonkey. This simple tool will add a download button to model pages on smorf.nl and allow direct downloading of any crystal form you like.
// ==UserScript==
// @name Smorf Downloader
// @namespace http://tampermonkey.net/
// @version 2024-06-11
// @description Adds a Download STL button to Smorf.nl
// @author SirCode
// @match https://www.smorf.nl/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=smorf.nl
// @grant unsafeWindow
// ==/UserScript==
#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