Skip to content

Instantly share code, notes, and snippets.

View jwmann's full-sized avatar
🎯
Focusing

James W Mann jwmann

🎯
Focusing
View GitHub Profile
@jwmann
jwmann / garminAutoLike.js
Created July 20, 2023 06:09
Auto-Like Garmin Posts for TamperMonkey userscripts. Based on my stravaAutoLike.js
// ==UserScript==
// @name Auto-Like Garmin Posts
// @namespace http://tampermonkey.net/
// @version 0.1.0
// @description Like all the posts!
// @author James W Mann
// @match https://connect.garmin.com/modern/newsfeed
// @icon https://www.google.com/s2/favicons?sz=64&domain=connect.garmin.com
// @grant none
// ==/UserScript==
@jwmann
jwmann / getExifToolDSM.sh
Created August 1, 2023 17:46
Automatically download latest ExifTool and add it to the PATH on DSM
#!/bin/bash
# Function to get the latest version from the ExifTool website
get_latest_version() {
local latest_version=$(curl -s "https://exiftool.org/history.html" | grep -m 1 -oP "<a name='v\K[.0-9]+?(?='>)")
echo "$latest_version"
}
# Get the latest version
LATEST_VERSION=$(get_latest_version)