Push notifications are great. You know what else is great? Gotify, a self-hosted server for sending and receiving push notifications. Distributed as a single binary file, Gotify is easy to deploy and maintain, and the accompanying Android app completes the picture.
Continue reading
Need to get the geographical coordinates of your current position? On a Debian and Linux Mint, install the geoclue-2-demo package using the sudo apt install geoclue-2-demo
command, then run the following one-liner:
/usr/libexec/geoclue-2.0/demos/where-am-i | grep -e 'Latitude' -e 'Longitude' | tail -n 2
If you need the latitude and longitude values only, use this one-liner instead:
/usr/libexec/geoclue-2.0/demos/where-am-i | \
grep -e 'Latitude' -e 'Longitude' | tr -d ' ' | \
cut -d':' -f2 | tr -d ° | tail -n 2