All:
Go/fasthttp (10 thr): 930.0 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Nginx (10 thr): 826.1 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
package 'debootstrap' | |
package 'apt-cacher-ng' | |
package 'inotify-tools' | |
include_recipe 'lxc::manage' | |
include_recipe 'lxc::network_bridge' | |
include_recipe 'lxc::dns' | |
host = node[:container] |
Some experiments, which worked but were eventually not used. | |
See http://www.greenhills.co.uk/2011/06/10/lxc.html | |
Now, the next big milestone is to get networking working. | |
In the config, we told lxc-create to use br0 as the link, | |
and inside the container we have eth0: | |
root@thunder:/# brctl show br0 | |
bridge name bridge id STP enabled interfaces | |
br0 8000.962e6bb72480 no vethP70LNx |
import os | |
from ginkgo import Service | |
from ginkgo.async.gevent import WSGIServer | |
from geventwebsocket.handler import WebSocketHandler | |
from flask import Flask, render_template | |
class WebSocket(Service): | |
def __init__(self): | |
self.add_service(WSGIServer(('127.0.0.1', 8001), self.handle, | |
handler_class=WebSocketHandler)) |
from twitter import Twitter, OAuth, TwitterHTTPError | |
OAUTH_TOKEN = 'foo' | |
OAUTH_SECRET = 'bar' | |
CONSUMER_KEY = 'baz' | |
CONSUMER_SECRET = 'bat' | |
t = Twitter(auth=OAuth(OAUTH_TOKEN, OAUTH_SECRET, CONSUMER_KEY, CONSUMER_SECRET)) |
# Some good references are: | |
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
#1. Install PostgreSQL postgis and postgres | |
brew install postgis | |
initdb /usr/local/var/postgres | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
package com.sexifit.android; | |
import java.io.IOException; | |
import java.io.StringReader; | |
import java.io.UnsupportedEncodingException; | |
import java.util.HashMap; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.parsers.ParserConfigurationException; |
Some experiments, which worked but were eventually not used. | |
See http://www.greenhills.co.uk/2011/06/10/lxc.html | |
Now, the next big milestone is to get networking working. | |
In the config, we told lxc-create to use br0 as the link, | |
and inside the container we have eth0: | |
root@thunder:/# brctl show br0 | |
bridge name bridge id STP enabled interfaces | |
br0 8000.962e6bb72480 no vethP70LNx |
Copy the email account credentials from your cPanel host to MiaB:
## Get FFMpeg working on heroku by building binaries using vulcan | |
gem install vulcan | |
vulcan create foo | |
git clone --depth 1 git://source.ffmpeg.org/ffmpeg | |
cd ffmpeg |