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
// ==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== |
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), |
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 |
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%/*} |
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 |