Skip to content

Instantly share code, notes, and snippets.

@kesor
kesor / Vagrantfile
Last active August 29, 2015 14:02
docker workshop
ENV['VAGRANT_NO_PLUGINS'] = 'true'
Vagrant.configure("2") do |v|
v.vm.box = "yungsang/boot2docker"
v.vm.box_version = ">= 1.3.7"
v.vm.box_check_update = false
v.vm.network :forwarded_port, guest: 5000, host: 60050
v.vm.network :forwarded_port, guest: 8500, host: 60085
v.vm.network :forwarded_port, guest: 8080, host: 60080
@kesor
kesor / docker_workshop.md
Last active January 22, 2019 17:40
docker workshop prerequisites

Docker Workshop

  • This workshop is intended for people who are familiar with Linux and running services like a web server, database, etc.

To make it and easier for everyone, and save us some time please prepare a couple of simple things beforehand. Coming unprepared can cause delays and you might miss the whole workshop because the internet is not fast enough for everyone to download the requirements.

  1. Bring your Laptop - this is a workshop!
    It does not matter which operating system you have installed.
erlang$1:::*-function-entry
{
self->funcall_entry_ts[copyinstr(arg1)] = vtimestamp;
}
erlang$1:::function-return
/self->funcall_entry_ts[copyinstr(arg1)]/
{
@time[copyinstr(arg1)] = quantize((vtimestamp - self->funcall_entry_ts[copyinstr(arg1)] ) / 1000);
}
@jwmerrill
jwmerrill / gbm.jl
Last active June 29, 2018 04:49
Faster geometric brownian motion
function genS_jl(I)
s0 = 600.0
r = 0.02
sigma = 2.0
T = 1.0
M = 100
dt = T/M
a = (r - 0.5*sigma^2)*dt
b = sigma*sqrt(dt)
@jj1bdx
jj1bdx / erlang-17.0-rc2-wx-osx.md
Last active August 29, 2015 13:56
Installation of Erlang R16B03-1 and 17.0-rc2 to OS X 10.9.2 with Xcode and wxWidgets 3.0.0

Installation of Erlang R16B03-1 and 17.0-rc2 to OS X 10.9.2 with Xcode and wxWidgets 3.0.0

Installing wxWidgets

@seancribbs
seancribbs / 00-README.md
Last active August 29, 2015 13:56
An RSVP-list demo on top of Riak 2.0 Datatypes

An RSVP-list demo on top of Riak 2.0 Datatypes

This is a purely in-browser demo of Riak 2.0's sets datatype. The application code uses React.js and jquery.

To get started, make a 5-node devrel cluster of the 2.0 preview using these instructions. After your cluster is built, make a bucket-type for sets:

cd dev/dev1
bin/riak-admin bucket-type create sets '{"props":{"datatype":"set","allow_mult":true}}'
bin/riak-admin bucket-type activate sets
@fritzy
fritzy / redis2riak.js
Created February 17, 2014 19:35
Export (and import) Redis keys in a normalized way to Riak.
var redisScan = require('redisscan');
var redis = require('redis');
var riak = require('riakpbc');
var async = require('async');
var args = require('optimist')
.usage('--import or --export Redis archives in Riak\nUsage: $0')
.boolean('import')
.boolean('export')
.boolean('debug')
.describe('import', "Import from Riak to Redis")
@XVilka
XVilka / TrueColour.md
Last active April 27, 2025 10:17
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

(defun erlang-insert-binary ()
"Inserts a binary string into an Erlang buffer and places the
point between the quotes."
(interactive)
(insert "<<\"\">>")
(backward-char 3)
)
(define-key erlang-mode-map (kbd "C-c b") 'erlang-insert-binary)
@NickHeiner
NickHeiner / thoughts-on-realtimeconf.md
Created November 3, 2013 22:25
Thoughts on Realtimeconf 2013

Thoughts on Realtimeconf 2013

Adam Brault, the “producer and creator” behind Realtimeconf, announced shortly after it was over that this one was the last. I have a hard time believing that. Maybe the next &yet conference will have a different theme or different branding, but I’m incredulous that anyone who has that much energy and passion for bringing the tech community together can resist the urge for long.*

Throughout the weekend, it was obvious that Adam and the entire (massive) team behind Realtimeconf was incredibly excited about making a unique, compelling experience. They didn’t have to put everyone in the same hotel, but doing so made it easier to have the impromptu encounters that are critical for forming relationships. They could have left us to disperse for dinner Friday night, which would have resulted in people who already knew each other cliquing up and going out alone. Instead, the team provided dinn