- Add a new file
stop_rails.sh
in the root of your RoR application with this content
#!/bin/sh
rails_pid=$(cat tmp/pids/server.pid)
kill "$rails_pid"
echo "Rails stopped with PID $rails_pid"
<?php | |
################################################################ | |
# THIS GIST HAS BEEN ABANDONED IN FAVOUR OF A COMPLETE LIBRARY # | |
# PLEASE READ THE COMMENT ABOVE # | |
################################################################ | |
namespace common\components; | |
/** |
-- 1. Install ADB on your computer | |
-- 2. adb backup -noapk com.freestylelibre.app.it | |
-- 3. Decompress data with zlib support: | |
-- printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" |cat - /tmp/data |gzip -dc >/tmp/out | |
-- 4. go to apps/com.freestylelibre.app.it/f/ | |
-- 5. open apollo.db and sas.db in a sqlite editor | |
-- 6. copy notes.data into sas.db | |
-- 7. run this query to have a diary with sensor scans and notes: | |
SELECT strftime('%d/%m/%Y %H:%M:%S', datetime(timestampLocal/1000, 'unixepoch')), comment, glucoseValue, fastInsulinDose, slowInsulinDose, foodCarbs, foodType |