Skip to content

Instantly share code, notes, and snippets.

@mlakhia
mlakhia / export_traceup_gpx.js
Last active November 30, 2020 23:24
Export All GPX Files from AlpineReplay / Trace Snow http://snow.traceup.com/settings/gpx
// Export All GPX Files from AlpineReplay / Trace Snow
// http://snow.traceup.com/settings/gpx
// How to use:
// 1. Login to Traceup.com
// 2. Navigate tohttp://snow.traceup.com/settings/gpx
// 3. open your browser Console
// 4. Paste the below javascript into the console and run
var b = document.querySelector('form[method] input')
@mlakhia
mlakhia / get-32-bit-apps.sh
Created November 17, 2020 02:46
In MacOS Catalina 32-bit apps do not launch. Finding which apps those are took me some time, so I found the answer on https://apple.stackexchange.com/a/314462/92276
mdfind "kMDItemExecutableArchitectures == '*i386*' && kMDItemExecutableArchitectures != '*x86*'" | sort
# Source https://apple.stackexchange.com/a/314462/92276
@mlakhia
mlakhia / after-gitignore.sh
Last active August 29, 2015 14:06
After updating .gitignore remove files from repo that shouldn't be tracked
// untrack all files in repo
git rm -r --cached .
// add all files to repo
git add -A