Add the follow entry to your avrdude config
vi ~/avrdude.conf
programmer
tempfoo=`basename $0` | |
TMPFILE=`mktemp /tmp/${tempfoo}` || exit 1 | |
filename=$TMPFILE/$(basename "$(1)") | |
wget -q -O- $(0) > $filename | |
echo $filename` |
#usage: script resolve-gist-url.sh username <gistname1> <gistname1> ... | |
#example: resolve-gist-url.sh rubeniskov resolve-gist-url.sh | |
wget -q -O- "https://api.github.com/users/$1/gists"|grep 'raw_url'|awk -F'"' '{print $4}'|grep -E "$(echo ${@:2}|tr ' ' '|')" |
Firt of all you need follow a USB -> TTL Converter
You can buy one FTDI UART R232
Or instead if you have a ARDUINO you can convert it as a USB to TTL converter How to use an Arduino as a USB to TTL converter
sudo apt-get update | |
sudo apt-get install -y \ | |
libomxil-bellagio-dev \ | |
libvpx-dev | |
git clone --depth 1 https://github.com/FFmpeg/FFmpeg.git ffmpeg && cd ffmpeg | |
./configure \ | |
--arch=armel \ | |
--target-os=linux \ | |
--enable-libvpx \ | |
--enable-omx \ |
apt-get update \ | |
&& apt-get install -yy \ | |
wget \ | |
bzip2 \ | |
autoconf \ | |
gettext \ | |
pkg-config \ | |
build-essential \ | |
libtool \ | |
libomxil-bellagio-dev \ |
GOROOT_BOOTSTRAP=/tmp/go1.4; BASHRC=$(ls ~/.bash*|grep 'rc\|_profile'|head -n1); { \ | |
mkdir -p $GOROOT_BOOTSTRAP; \ | |
curl -s https://dl.google.com/go/go1.4.3.src.tar.gz | tar -zx --strip-components=1 -C $GOROOT_BOOTSTRAP; \ | |
cd $GOROOT_BOOTSTRAP/src && ./make.bash; \ | |
curl -s https://dl.google.com/go/go1.10.3.src.tar.gz | tar -zx -C /tmp/; | |
cd /tmp/go/src && ./make.bash; mv -f /tmp/go /usr/local/; \ | |
sed -i '/^export GOROOT=/{h;s/=.*/=\/usr\/local\/go/};${x;/^$/{s//export GOROOT=\/usr\/local\/go/;H};x}' ${BASHRC}; \ | |
sed -i '/^export GOPATH=/{h;s/=.*/=${HOME}\/go/};${x;/^$/{s//export GOPATH=${HOME}\/go/;H};x}' ${BASHRC}; \ | |
sed -i '/^export PATH=/{h;s/=.*/=${PATH}:${GOPATH}\/bin/};${x;/^$/{s//export PATH=${PATH}:${GOPATH}\/bin/;H};x}' ${BASHRC}; \ | |
}; source $BASHRC; go version; go env |
ping -c 2 $(ifconfig | grep broadcast|awk '{print $6}') >/dev/null && arp -a |
const rxjs = require('rxjs'), | |
from = require('from2'), | |
through = require('through2'); | |
const rxStreamDuplex = stream => { | |
if (stream.pause) | |
stream.pause(); | |
return source => rxjs.Observable.create(observer => { | |
function onDataHandler(data) { |