Skip to content

Instantly share code, notes, and snippets.

# root2ram.sh
# more info: https://skyboo.net/2017/04/rpi-creating-a-ram-disk-running-linux-environment-from-nfs-booted-raspbian/
set -x
#uncomment following 2 lines to have a network in qemu:
#ip route del default
#ip route add default via 10.0.2.2 dev eth0
#setting time from NTP as the first step, otherwise all created files/dirs will have a bad dates
/usr/src/ntpclient/ntpclient -n -d -c1 -s ntp.task.gda.pl
@manio
manio / waga.sh
Created March 8, 2017 07:48
a simple bash script for weight logging automation to myfitnesspal and influxdb
#!/bin/bash
# a simple bash script for weight logging automation
# more info: https://skyboo.net/2017/03/automate-my-weekly-weight-logging/
if [[ $# -eq 0 ]]; then
echo "[*] ERROR: missing weight argument"
exit
fi
echo "[*] **** MyFitnessPal ****"