Install and configure ko
.
ko apply -f cmd/cloudbuild/
#! /bin/bash | |
# Use Examples | |
# ./ssh-keygen Additional comments | |
# ./ssh-keygen "(Work)" | |
ROUNDS=100 | |
if hash networksetup 2>/dev/null; then | |
# Mac only: Computer Name | |
COMMENT="$(networksetup -getcomputername) $@" |
This document describes one means of running a simple Apache Spark cluster on Cloud Foundry. It makes heavy use of Cloud Foundry's container networking features.
You can see an example running at http://spark-ui-proxy.184.73.108.92.xip.io.
This cluster was deployed using BOSH-Lite on AWS. Note, this Director cannot be targetted with the new BOSH CLI (see cloudfoundry-attic/bosh-lite#424), but you can use the "old" Ruby CLI just fine. You can use the new CLI for local workflows like manifest interpolation, and then the "old" CLI for remote workflows like deploying and SSH.
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
before we go any futher i'd like to show you all a game i made up. this game is called ["ShuHaRi in music"] and it can be played with any record, including this one. you may be surprised. now, if you have a pair of headphones, you better get 'em out and get 'em cranked up, 'cause they're really gonna help you. -- via Hot Chip
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git hg
brew install osxfuse
(see Mac issues to troubleshoot common errors)--- | |
rvm: | |
- 2.0.0 | |
before_install: | |
- "echo 'gem: --no-document' > ~/.gemrc" | |
- "echo '--colour' > ~/.rspec" | |
- gem install fog | |
- "./script/travis/bundle_install.sh" | |
- export DISPLAY=:99.0 |
This is a proof-of-concept of a couple of concurrent data structures written in Ruby.
The implementations are heavily commented for those interested. There are benchmarks (with results) included below. The results are interesting, but, as always, take with a grain of salt.
AtomicLinkedQueue
is a lock-free queue, built on atomic CAS operations.
# Artsy Editorial | |
# | |
# Get Page stats from google analytics | |
GA = require('googleanalytics') | |
util = require('util') | |
require('date-utils'); | |
module.exports = (robot) -> | |
robot.hear /stats (.*)http:\/\/artsy.net\/(.*)/i, (msg) -> |
# Depends on gems eventmachine, em-http-request, | |
# and em-resolv-replace (for # async DNS) | |
require 'eventmachine' | |
require 'em-http' | |
require 'fiber' | |
require 'em-resolv-replace' | |
def make_request_to(url) | |
connection = EventMachine::HttpRequest.new(url) |