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
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| "time" | |
| ) | |
| type Person struct { |
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
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
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
| wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
| bunzip2 phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
| tar xf phantomjs-1.9.1-linux-x86_64.tar | |
| mv phantomjs-1.9.1-linux-x86_64/ /opt/ | |
| ln -s /opt/phantomjs-1.9.1-linux-x86_64/ /opt/phantomjs | |
| ln -s /opt/phantomjs/bin/phantomjs /usr/local/bin/ | |
| #check what you've just done | |
| which phantomjs | |
| phantomjs --version |
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
| wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
| bunzip2 phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
| tar xf phantomjs-1.9.1-linux-x86_64.tar | |
| mv phantomjs-1.9.1-linux-x86_64/ /opt/ | |
| ln -s /opt/phantomjs-1.9.1-linux-x86_64/ /opt/phantomjs | |
| ln -s /opt/phantomjs/bin/phantomjs /usr/local/bin/ | |
| #check what you've just done | |
| which phantomjs | |
| phantomjs --version |
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
| cd; | |
| wget http://www.open.com.au/mikem/bcm2835/bcm2835-1.3.tar.gz; | |
| tar xvfz bcm2835-1.3.tar.gz; | |
| cd bcm2835-1.3; | |
| ./configure; | |
| make; | |
| sudo make install |