Skip to content

Instantly share code, notes, and snippets.

@vallettea
vallettea / node_rpi_install
Created January 11, 2015 17:57
node install on raspberry pi
```
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
rm node_latest_armhf.deb
echo 'PATH=$PATH:/usr/local/bin/' >> ~.zshrc
```
@vallettea
vallettea / macosx.md
Last active October 27, 2015 09:38
Networking with the RPI

On mac os open preferences and Network pannel and then create a new interface Thunderboldt ethernet named RPI2. Set manually and 192.168.20.20 255.255.255.0 192.168.20.0

@vallettea
vallettea / bbb_setup
Created January 7, 2015 15:55
BBB_ubuntu_setup
wget https://rcn-ee.net/deb/flasher/trusty/BBB-eMMC-flasher-ubuntu-14.04.1-console-armhf-2014-10-29-2gb.img.xz
xz -d BBB-eMMC-flasher-ubuntu-14.04.1-console-armhf-2014-10-29-2gb.img.xz
diskutil list
sudo diskutil unmountDisk /dev/diskX
sudo dd bs=1m if=BBB-eMMC-flasher-ubuntu-14.04.1-console-armhf-2014-10-29-2gb.img of=/dev/disk1
@vallettea
vallettea / mapboxgl.html
Created January 4, 2015 11:23
Trying to figure out how to animate the data ploted on mapbox gl
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.5.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.5.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@vallettea
vallettea / docker.md
Last active August 29, 2015 14:12
Docker

Install on mac:

Install brew and brew cask

brew update
brew tap phinze/homebrew-cask
brew install brew-cask
@vallettea
vallettea / bbb_ttl
Created November 27, 2014 12:33
ttl on beagle bone black
sudo vim /boot/uEnv.txt
and add
optargs=quiet drm.debug=7 capemgr.enable_partno=BB-UART4
reboot
root@beaglebone:/dev# ls -l /dev/ttyO*
crw-rw---- 1 root tty 249, 0 Jan 1 01:18 /dev/ttyO0
crw-rw---- 1 root dialout 249, 4 Jan 1 01:18 /dev/ttyO4
@vallettea
vallettea / connexion monitor
Last active August 29, 2015 14:09
arp-scan
# install arp-scan
sudo apt-get install libpcap-dev
wget http://www.nta-monitor.com/files/arp-scan/arp-scan-1.9.tar.gz
tar xf arp-scan-1.9.tar.gz
rm arp-scan-1.9.tar.gz
cd arp-scan-1.9
./configure
make
@vallettea
vallettea / bbb
Last active August 29, 2015 14:09
beagle bone black ubuntu
# http://inspire.logicsupply.com/2014/08/beaglebone-wifi-installation_5.html
-> the ubuntu stack
sudo apt-get install python
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install ipython numpy matplotlib plotly
@vallettea
vallettea / ssl
Last active August 29, 2015 14:09
setup ssl with wildcard
# 1: create the crs file on the server
# from https://www.linode.com/docs/security/ssl/obtaining-a-commercial-ssl-certificate
apt-get update
apt-get upgrade
apt-get install openssl
mkdir /etc/ssl/localcerts
cd /etc/ssl/localcerts
sudo openssl req -new -nodes -days 365 -newkey rsa:2048 -keyout '*.ants.builders.key' -out '*.ants.builders.csr'
#and enter also *.ants.builders.csr as the CN field
@vallettea
vallettea / geoconverter
Created August 15, 2014 15:29
Converter from lambert to longitude latitude
// http://gis.stackexchange.com/questions/70089/lambert93-to-wgs84-ign-algorithms-longitude-problem
// http://fr.wikipedia.org/wiki/Projection_conique_conforme_de_Lambert
function GeoConverter() {
this.M_PI_2 = Math.PI / 2.0;
this.DEFAULT_EPS = 0.000001;
this.E_WGS84 = 0.08181919106;
this.E2 = this.E_WGS84 / 2.0;
this.LON_MERID_IERS = 3.0 * Math.PI / 180.0;