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 | |
| PROTON_RUNNER="/usr/share/steam/compatibilitytools.d/proton-cachyos-slr/proton" | |
| PREFIX_DIR="$HOME/.protonprefix/pfx" | |
| FAKE_STEAM="$HOME/.protonprefix/fake-steam" | |
| LOCKFILE="$HOME/.protonprefix/winrun.lock" | |
| export STEAM_COMPAT_DATA_PATH="$PREFIX_DIR" | |
| export STEAM_COMPAT_CLIENT_INSTALL_PATH="$FAKE_STEAM" | |
| export STEAM_COMPAT_MEDIA_PATH="$HOME/.protonprefix/media" | |
| export STEAM_COMPAT_TRANSCODED_MEDIA_PATH="$HOME/.protonprefix/media_transcoded" |
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 bash | |
| # Show upstream changelogs/release notes for pending pacman + AUR + Flatpak updates | |
| # | |
| # Requires: bash 4+, pacman, pacman-contrib (checkupdates), an AUR helper supporting `-Qua` (yay by default - export AUR_HELPER=paru to swap), | |
| # jq, curl, ncurses (tput), plus awk/sed/grep/seq/wc/tr/head | |
| # | |
| # Optional: flatpak, arch-update (only for the post-run prompt), GITHUB_TOKEN to raise the GitHub API rate limit (60/hr -> 5000/hr) | |
| # | |
| # Usage: changelogs |
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
| """ | |
| fetch_scratch_json.py - download a Scratch project.json and package it into an sb3 from a Wayback Machine link. | |
| a .sb3 is just a zip of project.json + every asset (costumes/sounds), each named | |
| by its md5+ext. the wayback machine archives the page, not the bundle, so we | |
| have to grab project.json from the archived projects.scratch.mit.edu capture and | |
| then pull each asset (those are content-addressed, so the live CDN usually still | |
| has old ones), then zip it all back together. | |
| usage: |
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 | |
| setlocal EnableExtensions EnableDelayedExpansion | |
| REM ===== Configuration ===== | |
| set BACKUP_DEST=. | |
| for /f %%I in ('powershell -NoProfile -Command "Get-Date -Format yyyy-MM-dd_HH_mm_ss"') do set TIMESTAMP=%%I | |
| set BACKUP_FILE=%BACKUP_DEST%\%TIMESTAMP% zydesktop.7z | |
| set LOG_FILE=%BACKUP_DEST%\%TIMESTAMP%_backup.log | |
| set FAIL_LOG=%BACKUP_DEST%\%TIMESTAMP%_backup_failed.log |
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
| # Uses jxr_to_png.exe from https://github.com/ledoge/jxr_to_png | |
| Add-Type -AssemblyName PresentationCore | |
| Add-Type -AssemblyName WindowsBase | |
| Add-Type -AssemblyName System.Windows.Forms | |
| function Copy-FileToClipboard { | |
| param([string]$filePath) | |
| $files = New-Object System.Collections.Specialized.StringCollection |