Tales From a Heroku User
Here are some things I have learned along the way.
Last Updated: 2013-02-08
Original Audience: Hack Reactor
lslbk # find drives to add (eg /dev/nvmeXn1) | |
pvcreate /dev/nvme1n1 | |
pvcreate /dev/nvme2n1 | |
pvcreate /dev/nvme3n1 | |
pvcreate /dev/nvme4n1 | |
vgcreate vg1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1 /dev/nvme4n1 | |
lvcreate --type=raid0 -l100%FREE -n rd1 vg1 | |
mkfs.ext4 /dev/vg1/rd1 | |
mkdir /storage #customize your mount point | |
echo '/dev/vg1/rd1 /storage ext4 defaults 0 0' >> /etc/fstab |
Here are some things I have learned along the way.
Last Updated: 2013-02-08
Original Audience: Hack Reactor
package ens | |
import ( | |
"strings" | |
"github.com/ethereum/go-ethereum/common" | |
"github.com/ethereum/go-ethereum/crypto" | |
) | |
func Namehash(name string) common.Hash { |
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"net/http" |
CREATE AGGREGATE array_accum (anyarray) | |
( | |
sfunc = array_cat, | |
stype = anyarray, | |
initcond = '{}' | |
); |
require 'bitcoin' | |
require 'chain' | |
Chain.block_chain = 'testnet3' | |
Bitcoin.network = :testnet3 | |
include Bitcoin::Builder | |
key = Bitcoin::Key.from_base58("cVVBKRBMoPLJSSMW7cM3hji7VmXz1zJWX3DypcjPcWpRBMEu2xF7") | |
builder = Bitcoin::Builder::TxBuilder.new |
Oct 16 2010
In this article, I will walk through some simple steps to get a [demo app][2] up and running with [Backbone.js][3] and [Sinatra][4] on [Heroku][5].
Eventually platforms outgrow the single-source-tree model and become distributed systems. A common pattern in these distributed systems is distributed composition via event buffering. Here we motivate and describe this event buffering pattern.
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"autoscaling:Describe*", | |
"cloudformation:DescribeStacks", | |
"cloudformation:DescribeStackEvents", | |
"cloudformation:DescribeStackResources", | |
"cloudformation:GetTemplate", |