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
| // 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
| 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
| 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 zsh | |
| # Check if source folder is provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <source_folder>" | |
| exit 1 | |
| fi | |
| SOURCE_DIR="$1" | |
| DEST_DIR="${SOURCE_DIR}_extracted" |
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
| // Redirect to file download at Vector.co.jp | |
| if (window.location.host === 'www.vector.co.jp' && window.location.pathname.startsWith('/soft/')) { | |
| // Extract file ID by removing non-numeric characters | |
| const fileId = window.location.href.replace(/\D/g, ''); | |
| // Construct new URL with file ID | |
| window.location.href = `https://www.vector.co.jp/download/file/mac/game/fh${fileId}.html`; | |
| } | |
| // Auto-click the first link in #summary section on Vector.co.jp download pages |
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 zsh | |
| # Threshold for similarity | |
| THRESHOLD=0.05 | |
| # Get a sorted list of PNG files, using null-terminated strings to handle special characters | |
| files=() | |
| while IFS= read -r -d '' file; do | |
| files+=("$file") | |
| done < <(find . -maxdepth 1 -type f -name "*.png" -print0 | sort -z) |
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 zsh | |
| # Function to tag files with specified dimensions and color | |
| tag_dimension_files() { | |
| local width="$1" | |
| local height="$2" | |
| local color="$3" | |
| # Color label mapping | |
| local label_index |
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 |
NewerOlder