This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |