Skip to content

Instantly share code, notes, and snippets.

View forrestfiller's full-sized avatar

Forrest Filler forrestfiller

View GitHub Profile
@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.
# 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 / 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
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: