This file contains hidden or 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
| #!/usr/bin/env python3 | |
| r""" | |
| extract_games_lib.py — GAMES.LIB extractor for Muppets Inside (1996, Starwave) | |
| =============================================================================== | |
| Zero dependencies — stdlib only. DCL decompressor inlined at the bottom. | |
| Usage: | |
| python3 extract_games_lib.py <games_lib> [output_dir] [filter] | |
| games_lib path to GAMES.LIB (absolute or relative) |
This file contains hidden or 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
| # Organize ROMs into Alphabetical Range Folders | |
| # This script moves ROM files into folders based on alphabetical ranges and truncates long filenames | |
| param( | |
| [string]$Path = ".", | |
| [int]$MaxFilesPerFolder = 256, | |
| [int]$MaxFilenameLength = 99, | |
| [switch]$WhatIf | |
| ) |
This file contains hidden or 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 | |
| # Check if source argument provided | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: $0 <source_directory> [destination_directory]" | |
| echo "Example: $0 /path/to/rvz/archive /path/to/sdcard" | |
| echo "" | |
| echo "If destination is not provided, files will be converted to the script's directory" | |
| exit 1 | |
| fi |
This file contains hidden or 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 | |
| # Check if directory argument provided | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: $0 <directory>" | |
| echo "Example: $0 /path/to/psx" | |
| exit 1 | |
| fi | |
| TARGET_DIR="$1" |
This file contains hidden or 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 | |
| # Jellyfin Movie Organizer Script | |
| # This script organizes movie files into folders based on titles from .nfo files | |
| # Usage: ./organize_movies.sh [--dry-run] /path/to/your/movie/library | |
| set -e | |
| # Check for xmlstarlet dependency | |
| if ! command -v xmlstarlet >/dev/null 2>&1; then |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder