Skip to content

Instantly share code, notes, and snippets.

@audiefile
audiefile / Triggering “Eating Soon Mode” via Pebble Watch
Last active January 27, 2024 10:29
Draft Documentation for Triggering “Eating Soon Mode” via Pebble Watch Uses IFTTT and pebble watch app ThisButton by The Hub Media
• Setup IFTTT account
• Connect to Maker channel and note secret key
• Create if recipe
o if Maker 'Receive a web request'
• The Event Name doesn't matter, just make note of it. I suggest avoiding spaces as I've seen them cause problems in the past.
o then Maker 'Make a web request'
• URL: https://mynightscout.com/api/v1/treatments.json
• Method: POST
• Content type: application/json
• Body: { "enteredBy": "Maker", "eventType": "Temporary Target", "reason": "Eating Soon", "targetTop": 80, "targetBottom": 80, "duration": 60}
@oskarpearson
oskarpearson / intel-edison-openaps-setup
Created January 3, 2016 23:08
Prepping for OpenAPS install on an Intel Edison
# Install UbiLinux
Follow the instructions on https://learn.sparkfun.com/tutorials/loading-debian-ubilinux-on-the-edison and then continue here.
# Initial Setup
Log in as edison/edison via serial console
su -
echo FIXME-thehostname-you-want > /etc/hostname
SHELL=/bin/bash
PATH=/home/bewest/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
*/5 * * * * (cd ~/Documents/foo && openaps do-everything) 2>&1 | logger -t openaps-loop
@nl5887
nl5887 / gpg-agent.conf
Last active November 14, 2022 09:37
Using GPG Agent on OS-X
launchctl unload -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist
launchctl load -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist
@ecc1
ecc1 / Dockerfile
Created June 4, 2015 17:25
Dockerfile for Nightscout cgm-remote-monitor
FROM debian:latest
RUN apt-get update
RUN apt-get install -y git npm
# make sure nodejs binary is available as node
RUN cd /usr/bin && ln -s nodejs node
COPY . /src
@StephenBlackWasAlreadyTaken
StephenBlackWasAlreadyTaken / share_send_app_endpoints.md
Last active April 25, 2024 13:38
DexcomShare Endpoints for the Uploader App
  • these are the calls used by the dexcom uploader app
  • these are in no particular order!
  • User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0

General

Read Dexcoms System time clock

GET

@jagregory
jagregory / gist:710671
Created November 22, 2010 21:01
How to move to a fork after cloning
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork git@github...my-fork.git