Skip to content

Instantly share code, notes, and snippets.

View forrestfiller's full-sized avatar

Forrest Filler forrestfiller

View GitHub Profile
@forrestfiller
forrestfiller / platformio.ini
Created August 7, 2017 21:42 — forked from frankleonrose/platformio.ini
Building for TTN OTAA example on Feather M0 for debugging using PlatformIO and BlackMagic Probe
; Instructions
; - Install PlatformIO IDE Package within Atom and then choose PlatformIO / Install Shell Commands menu item
; - Alternatively install PlatformIO command line only (when you install for Atom it will want you to then remove the cli version)
; - Upgrade to development version of atmelsam platform using the following commands
; pio platform uninstall atmelsam
; pio platform install https://github.com/platformio/platform-atmelsam.git
; - Make a directory myproject
; - Copy this fileinto it as platformio.ini
; - Copy ttn-otaa.ino to myproject/src/main.cpp
; - Make sure that arm-none-eabi-gdb is on your path. Might have to run:
@forrestfiller
forrestfiller / decode-0x14.js
Created April 21, 2017 15:57 — forked from terrillmoore/decode-0x14.js
Node-RED decoding function for Catena 4450 data record port 1, type 0x14
// this Node-RED decoding function decodes the record sent by the Catena 4450 M101 power monitor
// written in a big hurry, so no points for style
var b = msg.payload; // pick up data for convenience; just saves typing.
// an empty table to which we'll add result fields:
//
// result.vBat: the battery voltage (if present)
// result.vBus: the USB charger voltage (if provided)
// result.boot: the system boot counter, modulo 256
@forrestfiller
forrestfiller / PlatformIO .ini config file for mDot
Created November 21, 2016 03:55
Frank put together the .ini file for our MultiTech mDot Dev board with the ststm32
[env:mDot]
; On OSX /Volume/MULTITECH is where mDot dev board maps as drive
upload_port = /Volumes/MULTITECH
platform = ststm32
framework = mbed
board = mts_mdot_f405rg
; create_lib_with = arm-none-eabi-ar -d libmDot-GCC_ARM-pwr_ex.a stm32f4xx_hal_pwr_ex.o
build_flags = -L.piolibdeps/libmDot-mbed5 -lmDot-GCC_ARM-pwr_ex.a
lib_deps =
https://developer.mbed.org/teams/MultiTech/code/libmDot-mbed5
---------------------------------------
Getting Started with the mDot Library
---------------------------------------
This README should get you started using the mDot library with your MultiTech mDot.
License information can be found in the accompanying LICENSE file.
The mDot header has documentation for all the public functions that will be useful to consumers of the library.
# pip should only run in when virtualenv is currently activated
export PIP_REQUIRE_VIRTUALENV=true
# cache pip-installed packages to avoid re-downloading
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
alias profile='vim ~/.bash_profile'
alias rehash='source ~/.bash_profile'
alias show='defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder'
@forrestfiller
forrestfiller / keybase.md
Created September 18, 2016 18:32
proving identity for keybase

Keybase proof

I hereby claim:

  • I am forrestfiller on github.
  • I am forrestfiller (https://keybase.io/forrestfiller) on keybase.
  • I have a public key whose fingerprint is CB98 EA4A BE89 EAEB D89A 36A1 8E1F CDE0 3202 EDFF

To claim this, I am signing this object:

@forrestfiller
forrestfiller / git.migrate
Created August 4, 2016 22:02 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.