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
using System; | |
using System.Collections.ObjectModel; | |
using System.IO; | |
using System.Text; | |
/// <summary> | |
/// Specification: https://github.com/kstenerud/safe-encoding/blob/master/safe85-specification.md | |
/// Reference implementation: https://github.com/kstenerud/safe-encoding/tree/master/reference-implementation/safe85 | |
/// </summary> | |
public static class Safe85 |
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
public partial class ShadedColorRect : ColorRect | |
{ | |
public const string GodotShaderCode = @" | |
shader_type canvas_item; | |
render_mode blend_disabled; | |
uniform vec4[7] u_palette; | |
uniform sampler2D u_texture : filter_nearest; | |
void fragment(){ | |
vec2 texture_size = vec2(textureSize(u_texture, 0)); | |
//COLOR = texture(u_texture, (floor(UV * texture_size) + .5) / texture_size); |
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
import argparse | |
import glob | |
import os | |
import sys | |
import xml.etree.ElementTree | |
parser = argparse.ArgumentParser(description='Replaces hyphens in Jellyfin movie titles with colons instead.') | |
parser.add_argument('-f', '--folder', metavar='folder', type=str, nargs=1, required=True, default=[1], help='Root directory') | |
def error(msg, exitcode=3): | |
print(msg, file=sys.stderr) | |
sys.exit(exitcode) |
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
@ECHO OFF | |
cd %~dp0 | |
python.exe %~dpn0.py %1 %2 %3 %4 %5 %6 %7 %8 | |
@PAUSE |
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 | |
IFS=' | |
' | |
for f in *.iso; do | |
if ./mciso-i386.linux 9 "$f" "$(basename -s .iso "$f").cso"; then | |
rm $f | |
fi | |
done |
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 | |
IFS=' | |
' | |
for f in *.png; do | |
mv "$f" "$(basename -s .png "$f").m3u.png" | |
done |
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
@ECHO OFF | |
cd %~dp0 | |
chdman.exe createcd -i %1 -o "%~n1.chd" | |
@PAUSE |
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 | |
# Google Domains provides an API to update a DNS "Synthetic record". This script | |
# updates a record with the script-runner's public IP, as resolved using a DNS | |
# lookup. | |
# | |
# Google Dynamic DNS: https://support.google.com/domains/answer/6147083 | |
# Synthetic Records: https://support.google.com/domains/answer/6069273 | |
# Original script: https://gist.github.com/cyrusboadway/5a7b715665f33c237996 | |
# Original modified script: https://gist.github.com/drewchapin/57d7039e30e8cc49e30bdc56a194f5bf |
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
@ECHO OFF | |
cd %~dp0 | |
for /f "eol=: delims=" %%F in ('dir /b /a-d *.flac ^| findstr /vixc:"%~nx0"') do ( ffmpeg.exe -i "%%F" -loop 1 -i Folder.jpg -filter_complex "[1]scale=-1:1080,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v]" -map "[v]" -map 0:a -c:a copy -c:v libx264 -movflags +faststart -strict -2 -shortest "%%F.mkv" ) | |
@PAUSE |
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
@ECHO OFF | |
cd %~dp0 | |
for /f "eol=: delims=" %%F in ('dir /b /a-d *.mka ^| findstr /vixc:"%~nx0"') do ( ffmpeg.exe -i "%%F" -af "pan=5.1|FL=FL|FR=FR|BL=SL|BR=SR" "%%F.flac" ) | |
@PAUSE |
NewerOlder