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
| --needs exiftool, I use homebrew to install that | |
| --15 is the zoom | |
| tell application "Finder" to set imgpath to quoted form of POSIX path of first item of (selection as alias list) | |
| set theloc to every text item of (do shell script "/opt/homebrew/bin/exiftool -n -p '$GPSLatitude,$GPSLongitude' " & imgpath) as string | |
| if theloc is "" then | |
| return |
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
| --for posting a link with selected text from Safari to rss.chat | |
| -- I use FastScripts | |
| --needs jq, I installed that with homebrew | |
| property rssChatUrl : "https://example.com/newpost" | |
| property emailAddress : "email@example.com" | |
| property emailCode : "rsschatemailcode" | |
| tell application "Safari" | |
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
| <?php | |
| /** | |
| * Plugin Name: FeedLand River Include | |
| * Description: Embeds a FeedLand river viewer via shortcode [feedlandriverinclude]. | |
| * Version: 1.0.0 | |
| * License: GPLv2 or later | |
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { |
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 | |
| # Usage: ./reduce_gif_frames.sh input.gif output.gif | |
| if [ $# -ne 2 ]; then | |
| echo "Usage: $0 input.gif output.gif" | |
| exit 1 | |
| fi | |
| INPUT_GIF="$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 | |
| # Get computer model | |
| MODEL=$(sysctl -n hw.model) | |
| # Get OS version | |
| OS_VERSION=$(sw_vers -productVersion) | |
| # Get frontmost app and its version | |
| FRONT_APP=$(lsappinfo info -only name `lsappinfo front | sed 's/-/-0x/'` | cut -d '"' -f 4) |
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 node | |
| // gpx2geojson.js — Convert a GPX track to a URL-encoded GeoJSON string (≤1024 chars) | |
| // | |
| // Usage: | |
| // node gpx2geojson.js [options] <file.gpx> | |
| // | |
| // Options: | |
| // --max-len <n> Max URL-encoded output length (default: 1024) | |
| // --tolerance <n> Starting RDP epsilon in degrees (default: 0.0001) | |
| // --linecolor <hex> Line colour (default: #0099ff) |
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
| set URLs to windowOneTabs() | |
| set mytempFolder to do shell script "mktemp -d " | |
| set c to 0 | |
| tell application "Safari" to activate | |
| tell application "System Events" | |
| tell process "Safari" | |
| click menu item "New Window" of menu "File" of menu bar 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
| --needs imageMagick & shot-scraper paths below refere to homebrew installs of both (guessing from the path) | |
| --https://shot-scraper.datasette.io/en/stable/ | |
| set mytempFolder to do shell script "mktemp -d " | |
| --just to watch things happening | |
| do shell script "open " & mytempFolder | |
| tell application "Safari" | |
| set themax to number of tabs of window 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 | |
| #ToDOs | |
| # find how how many photos and work out pages automatically | |
| # use parameters in terminal rather than in script | |
| #2024 additions | |
| # Added Morning audio choice, gentler added a fade to the audio | |
| # only use sox if the audio is not long enough |
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
| body { background-image: linear-gradient(to right, #00b09b, #96c93d); } | |
| #idProductLogo img{ border-radius:25%; } | |
| @media screen and (max-width: 1200px) { | |
| .divRiverDisplay { width: 95%; } | |
| .divRiverContent{ width:98%; } | |
| .divMoreButton { display:block; } | |
| .divPageBody { width:94%; } | |
| } | |
| .divPageBody { margin-top: 30px; } |
NewerOlder