Install the required packages (Ubuntu 12.04):
apt-get install nfs-kernel-server portmapOpen the exports file:
vim /etc/exports| #!/bin/bash | |
| # Callbell LATAM Latency Test | |
| # Usage: curl -sL https://gist.githubusercontent.com/YOUR_USER/YOUR_GIST_ID/raw/callbell-latency-test.sh | bash | |
| echo "========================================" | |
| echo " Callbell LATAM Latency Test" | |
| echo "========================================" | |
| echo "" |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os/exec" | |
| "runtime" | |
| ) | |
| type Worker struct { |
| class BroccoliFormatter | |
| RSpec::Core::Formatters.register self, :dump_pending, :dump_failures, :close, :dump_summary, :example_passed, :example_failed, :example_pending | |
| def initialize(output) | |
| @output = output << "\n" | |
| end | |
| def example_passed(_notification) | |
| @output << ' 🥦 ' | |
| end |
| package opaque | |
| type internalBasicType int | |
| // | |
| // Prevents the interface to be implemented | |
| // *outside* the package, since is lowerCase (thus private). | |
| // | |
| // This is best suited for API and things we don't | |
| // wanna people to override. |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "io" | |
| "log" | |
| "io/ioutil" | |
| ) |
| // http://www.codewars.com/kata/52223df9e8f98c7aa7000062/train/javascript | |
| function rot13(str) { | |
| var lower = "abcdefghijklmnopqrstuvwxyz", | |
| upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", | |
| mod = upper.length; | |
| return str | |
| .split('') | |
| .map(function(i) { |
| /** @jsx React.DOM */ | |
| var InputForm = React.createClass({ | |
| handleSubmit: function(e) { | |
| e.preventDefault(); | |
| var value = this.refs.text.getDOMNode().value; | |
| this.props.onAddItem({ text: value, done: false }); | |
| this.refs.text.getDOMNode().value = ''; | |
| }, | |
| render: function() { | |
| return ( |
| :) CREATE TABLE test.nested (EventDate Date, UserID UInt64, Attrs Nested(Key String, Value String)) ENGINE = MergeTree(EventDate, UserID, 8192) | |
| CREATE TABLE test.nested | |
| ( | |
| EventDate Date, | |
| UserID UInt64, | |
| Attrs Nested( | |
| Key String, | |
| Value String) | |
| ) ENGINE = MergeTree(EventDate, UserID, 8192) |
| // http://jsfiddle.net/suBPQ/ | |
| $.ajax({ | |
| url: "http://api_test_server.proudlygeek.c9.io/", | |
| success: function(data) { | |
| console.log(data); | |
| } | |
| }); |