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
# https://github.com/SachaG/Telescope | |
######################## | |
# it should be | |
sudo apt-get install git npm | |
curl https://install.meteor.com | /bin/sh | |
sudo npm install -g meteorite |
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
""""Create "The Matrix" of binary numbers scrolling vertically in your terminal. | |
original code adapted from juancarlospaco: | |
- http://ubuntuforums.org/showpost.php?p=10306676 | |
Inspired by the movie: The Matrix | |
- Corey Goldberg (2013) | |
Requires: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.8.3.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script> | |
<script src="/socket.io/socket.io.js"></script> | |
<script> | |
$(document).ready(function () { | |
var socket = io.connect(); | |
socket.on('update_position', function (data) { |
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
# install newer node | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
sudo apt-get install --yes build-essential; | |
sudo apt-get install curl screen |
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
# on the shell, do: | |
# task rc.json.array=yes export > del.json | |
import json | |
tasks = json.load(open('del.json', 'r')) | |
for task in tasks: | |
print task["uuid"] | |
print task["description"] | |
# this doesn't work yet |
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
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
sudo apt-get install git screen | |
git clone git://git.eclipse.org/gitroot/orion/org.eclipse.orion.client.git | |
cd org.eclipse.orion.client/modules/orionode |
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
# Thanks to # https://github.com/xray7224/PyPump | |
# | |
import json | |
import sys | |
import requests | |
from requests_oauthlib import OAuth1 | |
try: |
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
sudo apt-get update | |
# get ec2 ip and hostname | |
curl http://169.254.169.254/latest/meta-data/public-ipv4 > public.ip | |
curl http://169.254.169.254/latest/meta-data/public-hostname > public.hostname | |
sudo apt-get install --yes build-essential curl git | |
#install latest node | |
sudo apt-get install --yes python-software-properties python g++ make | |
sudo add-apt-repository --yes ppa:chris-lea/node.js | |
sudo apt-get update |
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 express = require('express'), | |
app = express(); | |
app.use(express.bodyParser()); | |
app.use(express.logger()); | |
app.get('/', function(req, res){ | |
res.send('Hello World'); | |
}); |
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
// in AngularJS (client) | |
myApp.config(['$httpProvider', function($httpProvider) { | |
$httpProvider.defaults.useXDomain = true; | |
delete $httpProvider.defaults.headers.common['X-Requested-With']; | |
}]); | |
// in Express/nodeJS |