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
| // Final CRT shader with all effects including curvature | |
| uniform float scanlineIntensity; // Adjust intensity (0-1) | |
| uniform float scanlineCount; // Number of scanlines | |
| uniform float time; // For flicker effect | |
| uniform float yOffset; // Vertical drift to combat moiré pattern | |
| uniform float brightness; // Overall brightness | |
| uniform float contrast; // Contrast adjustment | |
| uniform float saturation; // Color saturation | |
| uniform float bloomIntensity; // Bloom effect intensity |
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/sh | |
| URL="https://file.io" | |
| DEFAULT_EXPIRE="14d" # Default to 14 days | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: file.io FILE [DURATION]\n" | |
| echo "Example: file.io path/to/my/file 1w\n" | |
| 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
| #!/usr/bin/env bash | |
| # by Matt Sephton @gingerbeardman | |
| # requires SynoCommunity ffmpeg to be installed | |
| log="/volume1/video/Scripts/remux.log" | |
| bin="/volume1/video/#recycle/" | |
| work="/volume1/video/Scripts/" | |
| export 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
| #!/usr/bin/env python3 | |
| # <xbar.title>HTTP Server Control</xbar.title> | |
| # <xbar.version>3.0.0</xbar.version> | |
| # <xbar.author>Matt Sephton</xbar.author> | |
| # <xbar.author.github>gingerbeardman</xbar.author.github> | |
| # <xbar.desc>Start and stop a Python HTTP servers from a specific directory</xbar.desc> | |
| # <xbar.dependencies>python3</xbar.dependencies> | |
| import os | |
| import subprocess |
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
| FILE=`basename "$@" .xcarchive` | |
| PARENT=`dirname "$@"` | |
| ditto "$@"/Products/Applications/ $PARENT/. | |
| printf "\a" | |
| # List all .app directories in $PARENT | |
| for app_path in "$PARENT"/*.app; do | |
| # Extract the app name (basename without .app extension) | |
| app_name=$(basename "$app_path" .app) |
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/zsh | |
| # <bitbar.title>Volume Manager</bitbar.title> | |
| # <bitbar.version>250624</bitbar.version> | |
| # <bitbar.author>Matt Sephton</bitbar.author> | |
| # <bitbar.author.github>gingerbeardman</bitbar.author.github> | |
| # <bitbar.desc>Lists and manages mounted user volumes</bitbar.desc> | |
| # <bitbar.dependencies>zsh</bitbar.dependencies> | |
| # <bitbar.abouturl>https://gist.github.com/gingerbeardman/610f22180117ad20465d7c529cc5faa0</bitbar.abouturl> | |
| setopt EXTENDED_GLOB |
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
| { | |
| "expected_update_period_in_days": "1", | |
| "url": [ | |
| "https://auctions.yahoo.co.jp/search/search?p=花札&en=Hanafuda&exflg=1&b=1&n=100&s1=new&o1=d&mode=1", | |
| ], | |
| "type": "html", | |
| "mode": "on_change", | |
| "extract": { | |
| "url": { | |
| "css": "a.Product__titleLink", |
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
| pbpaste | tr "," ";" | tr "\t" ',' | csvtomd -p 0 | sed 's/&/\&/g' | sed 's/|/ | /g' | sed 's/ */ /g; s/^ *//; s/ *$//' | sed 's/^/| /; s/$/ |/' | tr ';' ',' |
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
| osascript -e ' | |
| tell application "System Events" | |
| tell process "NotificationCenter" | |
| if not (window "Notification Center" exists) then return | |
| set alertGroups to groups of first UI element of first scroll area of first group of window "Notification Center" | |
| repeat with aGroup in alertGroups | |
| try | |
| perform (first action of aGroup whose name contains "Close" or name contains "Clear") | |
| on error errMsg | |
| log errMsg |
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 | |
| # requirements: blueutil | |
| echo "Hold both 1+2 buttons on Wii Remote and wait for 30 seconds" | |
| # get MAC Address of Wii Remote | |
| MAC=`$(which blueutil) --inquiry 5 2>&1 | grep 'address' | awk '{print substr($2,1,17)}'` | |
| (killall -m 'blueutil*' 2>&1) >/dev/null | |
| echo "MAC: $MAC" |
NewerOlder