Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
ex hobbyist coder

James Morris jwm-art-net

💭
ex hobbyist coder
View GitHub Profile
@jwm-art-net
jwm-art-net / getfit
Created May 19, 2020
Pull .fit files off my Garmin Edge 510 and put into a year folder and convert to gpx.
View getfit
#!/bin/bash
function mountpoint_from_vendor_id
{
VENDORID="$1"
iserial=$(lsusb -v -d "$VENDORID": 2> /dev/null | grep iSerial -m 1 | cut -d ' ' -f 3)
}
SRCDIR="/run/media/sirrom/GARMIN/Garmin/Activities"
View scrolltext
#!/bin/bash
#
# scroll text - scrolls text
# by james w. morris.
#
# creates a video of text scrolling over moving stripes to
# give slight parallax effect.
#
# for demo see: http://youtu.be/_kKpCxgNQyM
#
@jwm-art-net
jwm-art-net / gist:7646636
Created Nov 25, 2013
sed delete fluxbox xscreensaver menu entries
View gist:7646636
# use grep to check the regex:
grep '\[exec[]]\s[(].*[)]\s[{]/usr/lib/xscreensaver/.*\s-root[}]' Downloads/menu
# ie here's what it matches:
# [exec] (Abstractile) {/usr/lib/xscreensaver/abstractile -root}
# [exec] (Anemone) {/usr/lib/xscreensaver/anemone -root}
# [exec] (Anemotaxis) {/usr/lib/xscreensaver/anemotaxis -root}
# [exec] (Apollonian) {/usr/lib/xscreensaver/apollonian -root}