Unionize lets you connect together docker containers in arbitrarily complex scenarios.
Just check those examples.
Let's create two containers, running the web tier and the database tier:
Unionize lets you connect together docker containers in arbitrarily complex scenarios.
Just check those examples.
Let's create two containers, running the web tier and the database tier:
import mechanize | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
TGT_DATE = 'MONTH DAY, YEAR' #i.e. 'September 30, 2014' | |
OFFICE_ID = '503' # officeid for SF DMV. See HTML code for other office ids | |
NUMBERITEMS = 'Num' # number of tasks for dmv; should be between 1-3 | |
FIRSTNAME = 'FIRST_NAME' | |
LASTNAME = 'LAST_NAME' | |
# Number looks like (TELAREA) TELPREFIX-TELSUFFIX |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
%% Read image and convert to grayscale | |
img = imread('pic.jpg'); | |
img = rgb2gray(img); | |
%% Define grayscale representations of 0-255 | |
chars = fliplr([' ', '.', ',', ':', '-', '=', '+', '*', '#', '%', '@']); | |
step = 256 / 11; | |
%% Cut image so its size is 8*w times 13*h | |
imgSize = size(img); |
# run this as root | |
while [ 1 ]; do echo | nc -l -U /tmp/reload_nginx && /etc/init.d/nginx reload; done | |
# or as an upstart job | |
script | |
echo | nc -l -U /tmp/reload_nginx && /etc/init.d/nginx reload | |
end script | |
respawn | |
# now any process can run this or do the equivalent with sockets to trigger reload |
define([ | |
], function() { | |
return { | |
componentDidMount: function() { | |
this._boundForceUpdate = this.forceUpdate.bind(this, null); | |
this.getBackboneObject().on("all", this._boundForceUpdate, this); | |
}, | |
componentWillUnmount: function() { | |
this.getBackboneObject().off("all", this._boundForceUpdate); | |
}, |
var React = require('react/addons'), | |
TestUtils = React.addons.TestUtils, | |
TestContext = require('./TestContext'), | |
App = require('./App.jsx'), | |
app = TestContext.getRouterComponent(App); | |
describe('App', function() { | |
it('has something', function() { | |
expect(app.getDOMNode().textContent).toContain('something'); | |
}); |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
// munged from https://github.com/simontime/Resead | |
namespace sead | |
{ | |
class Random | |
{ |