Skip to content

Instantly share code, notes, and snippets.

[vendor "openapscontrib.timezones"]
path = .
module = openapscontrib.timezones
[device "tz"]
vendor = openapscontrib.timezones
extra = tz.ini
[report "selected-demo.json"]
use = select
@bewest
bewest / bewest-aliases.json
Last active July 10, 2016 04:55
cgm reports template
[
{
"type": "alias",
"name": "rm-warmup",
"rm-warmup": {
"command": "! bash -c \"rm -f model.json monitor/clock.json > /dev/null\""
}
},
{
"type": "alias",
@bewest
bewest / laptop-fs-tab.txt
Created May 31, 2016 20:59
laptop fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda3 during installation
UUID=537348b3-1a2b-4660-864a-90b682f4986b / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
@bewest
bewest / calibrations.json
Created May 31, 2016 20:01
oref0 raw monitor/glucose.json calibrations.json 200 | json | tee new-glucose.json
[
{
"slope": 896.2810042779373,
"system_time": "2016-05-26T06:44:02",
"scale": 1.0,
"decay": 1.0417335910913732,
"display_time": "2016-05-26T00:46:53",
"subrecords": [
{
"applied": "2016-05-26T06:39:01",
@bewest
bewest / cal_set.txt
Last active May 28, 2016 18:25
dexcom cal set?
0000 0xb2 0x93 0xea 0x0d 0xfd 0x3f 0xea 0x0d .....?..
0008 0x37 0xbe 0x2b 0x7f 0x3f 0x02 0x8c 0x40 7.+.?..@
0010 0x02 0x61 0x17 0x8b 0x1c 0x98 0xde 0x40 .a.....@
0018 0x00 0x00 0x00 0x00 0x00 0x00 0xf0 0x3f .......?
0020 0x03 0x06 0x09 0x05 0x1d 0x8e 0xd7 0xf0 ........
0028 0xaa 0xf0 0x3f 0x02 0xec 0x91 0xea 0x0d ..?.....
0030 0x59 0x00 0x00 0x00 0x70 0xc3 0x01 0x00 Y...p...
0038 0x85 0x92 0xea 0x0d 0x00 0x4c 0x92 0xea .....L..
0040 0x0d 0x62 0x00 0x00 0x00 0xa0 0xc1 0x01 .b......
0048 0x00 0xb1 0x93 0xea 0x0d 0x00 0x00 0x00 ........
@bewest
bewest / cgm-itc-customs.md
Last active May 23, 2016 03:35
cgm in the cloud customs

CGM in the Cloud Customs

Howdy! Welcome to the new territory called CGM in the Cloud! We have some customs here we'd like you to know about. In order to explain these customs, let's revisit some of the guiding principles that brought us here:

The enemy is diabetes

This principle, above all, brings people together.

@bewest
bewest / colphon.md
Created May 6, 2016 01:03
gource diabetes

0  gource --output-custom-log -  openaps/ | sed -r "s#(.+)\|#\1|/openaps\/openaps#" > ../openaps-log.txt
 2251  gource --output-custom-log -  oref0/ | sed -r "s#(.+)\|#\1|/openaps\/oref0#" > ../oref0-log.txt
 2252  ls ..
 2253  ls
 2254  for x in ./*; do echo $x; done;
 2255  for x in ./*; do echo $x; done; | tee ../inputs
 2256  for x in ./*; do echo $x; done | tee ../inputs
 2257  vim ../inputs 
[
{
"type": "alias",
"name": "rm-warmup",
"rm-warmup": {
"command": "! bash -c \"rm -f model.json monitor/clock.json > /dev/null\""
}
},
{
"type": "alias",
@bewest
bewest / goodfet-TI-dongle.md
Created April 26, 2016 19:08
goodfet TI stick wiring

https://github.com/sarweshkumar47/Boot-Intel-Edison-from-SDCard-with-Debian-Ubilinux

run this

setenv mmc-bootargs 'setenv bootargs root=${myrootfs} rootdelay=3 rootfstype=ext4 ${bootargs_console} ${bootargs_debug} systemd.unit=${bootargs_target}.target hardware_id=${hardware_id} g_multi.iSerialNumber=${serial#} g_multi.dev_addr=${usb0addr}'
setenv myrootfs '/dev/mmcblk1p1'
setenv myrootfs_sdcard /dev/mmcblk1p1

setenv myrootfs_emmc PARTUUID=e2cba1bd-9c9b-403b-b88b-87c3fdc1cc58