VBoxManage controlvm screenshotpng
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
null:Sites cpiuggi$ git clone https://github.com/Method-Inc/method-dev-sigin.git | |
Cloning into 'method-dev-sigin'... | |
Username for 'https://github.com': ^C | |
null:Sites cpiuggi$ git clone https://github.com/Method-Inc/method-dev-sigin.git | |
Cloning into 'method-dev-sigin'... | |
Username for 'https://github.com': piuggi | |
Password for 'https://[email protected]': | |
remote: Counting objects: 28, done. | |
remote: Total 28 (delta 0), reused 0 (delta 0), pack-reused 28 | |
Unpacking objects: 100% (28/28), done. |
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
var geocoderProvider = 'google'; | |
var httpAdapter = 'http'; | |
var geocoder = require('node-geocoder').getGeocoder(geocoderProvider, httpAdapter, {}); | |
var weather = require('weather-js'); | |
geocoder.reverse(40.7208628, -74.0455604, function(err, res) { | |
console.log(res); | |
weather.find({search: res[0].zipcode, degreeType: 'F'}, function(err, result) { |
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
var Canvas = require('canvas'), | |
GIFEncoder = require('gifencoder'), | |
fs = require('fs'), | |
path = require('path'); | |
var width = 500, height = 500; | |
var encoder = new GIFEncoder(width, height); | |
encoder.createReadStream().pipe(fs.createWriteStream('myanimated.gif')); |
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
################################### | |
# general ignore patterns | |
################################### | |
build/ | |
obj/ | |
*.o | |
Debug*/ | |
Release*/ | |
*.mode* |
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
// where db.collection = the mongo collection you are looking to update | |
// this could be adapted in many ways | |
var collection = db.collection; var i = 0; collection.find().forEach(function(doc){ print("updating index: "+i); collection.update({_id:doc._id},{$set:{index:i}}); i++ }) |
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
Port 8090 | |
BindAddress 0.0.0.0 | |
MaxHTTPConnections 2000 | |
MaxClients 1000 | |
MaxBandwidth 5000 | |
CustomLog - | |
NoDaemon | |
<Feed feed1.ffm> | |
File /tmp/feed1.ffm |
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
cd ~ | |
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-arm-pi.tar.gz | |
tar -xvzf node-v0.10.28-linux-arm-pi.tar.gz | |
cd ~ | |
touch .bash_profile | |
nano .bash_profile | |
#Node Source |
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
#rPi IMAGE COPY AND RESTORE | |
#see all volumes mounted to machine | |
$ diskutil list | |
#locate your SD card | |
#change {N} your disk number | |
#unmount the disk you’re speaking to |
###AWS SERVER CONFIGURATION ####Configuring an Ubuntu AWS Box with Node, Mongodb, and Forever with port forwarding
- Login to aws.amazon.com and create an EC2 instance with a standard Ubuntu installation.
- Create a Security Group that allows type SSH on port 22 and HTTP on port 80.
- Download the .pem file (during setup) which we'll use to authenticate into your server via terminal.
Modify permissions on the .pem
file downloaded from AWS
$ chmod 0600 ~/Downloads/{your_key}.pem