cd /tmp
wget -O resize.sh http://forum.odroid.com/download/file.php?id=502&sid=6afc415a6c6c7f04560e1ecce3960554
chmod +x resize.sh
sudo ./resize.sh
sudo reboot
- ouvrir firefox
- aller sur http://10.33.0.4/
- onglet "profil de numerisation"
- appuyer sur le bouton "crée"
- une fenêtre s'ouvre
- "Missing plugin:
- cliquer sur "plus d'info"
- "Missing plugin:
- on se retrouve sur la page de java
This file contains hidden or 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
| docker run --name mongo_instance -v /data/context:/data -d mongo | |
| docker exec -ti mongo_instance bash | |
| mongorestore --db context /data/pois.json/pois/ | |
| echo 'db.pois.find( { lonlat : | |
| { $geoWithin : | |
| { $geometry : | |
| { type : "Polygon", | |
| coordinates : [ [ [ 2.325612, 48.81079 ] , [ 2.325612, 48.84675 ] , [ 2.380082, 48.84675 ] , [ 2.380082, 48.81079 ] ,[ 2.325612, 48.81079 ] ] ] |
This file contains hidden or 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
| sudo apt-get install rssh | |
| sudo useradd -m -d /data/guest -s /usr/bin/rssh guest | |
| # ask for public key | |
| sudo mkdir /data/guest/.ssh | |
| sudo vim /data/guest/.ssh/authorized_keys # and copy it here | |
| # edit /etc/rssh.conf and uncomment allowscp |
This file contains hidden or 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
| # finding raspberry pi | |
| sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}' | |
| # finding odroid |
This file contains hidden or 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
| # Rpi | |
| #http://www.cnx-software.com/2015/03/04/raspbian-image-with-docker-1-5-0-released-for-raspberry-pi-boards/ | |
| wget http://assets.hypriot.com/hypriot-rpi-20150301-140537.img.zip | |
| #The default username/password are pi/raspberry and root/hypriot. | |
| # BBB | |
| # Odroid |
This file contains hidden or 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
| ## to check file and directories that are taking place | |
| cd /path/to/some/where | |
| $ du -hsx * | sort -rh | head -10 | |
| docker rm -v (docker ps -a | grep Exited | awk '{print $1}') | |
| docker rmi (docker images -aq) | |
| ## to clean orphaned volumes | |
| https://github.com/chadoe/docker-cleanup-volumes |
This file contains hidden or 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
| /* sigma.js - A JavaScript library dedicated to graph drawing. - Version: 1.0.3 - Author: Alexis Jacomy, Sciences-Po Médialab - License: MIT */ | |
| (function(){"use strict";var a={},b=function(c){var d,e,f,g,h;b.classes.dispatcher.extend(this);var i=this,j=c||{};if("string"==typeof j||j instanceof HTMLElement?j={renderers:[j]}:"[object Array]"===Object.prototype.toString.call(j)&&(j={renderers:j}),g=j.renderers||j.renderer||j.container,j.renderers&&0!==j.renderers.length||("string"==typeof g||g instanceof HTMLElement||"object"==typeof g&&"container"in g)&&(j.renderers=[g]),j.id){if(a[j.id])throw'sigma: Instance "'+j.id+'" already exists.';Object.defineProperty(this,"id",{value:j.id})}else{for(h=0;a[h];)h++;Object.defineProperty(this,"id",{value:""+h})}for(a[this.id]=this,this.settings=new b.classes.configurable(b.settings,j.settings||{}),Object.defineProperty(this,"graph",{value:new b.classes.graph(this.settings),configurable:!0}),Object.defineProperty(this,"middlewares",{value:[],configurable:!0}),Object.defineP |
This file contains hidden or 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
| sudo dd if=/dev/rdisk1 bs=1m | gzip > ~/Desktop/pi.gz | |
| gzip -dc ~/Desktop/pi.gz | sudo dd of=/dev/rdisk1 bs=1m |