Skip to content

Instantly share code, notes, and snippets.

Brian L. Troutwine blt

Block or report user

Report or block blt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lolspeed.erl
-module(lolspeed).
-export([main/0]).
-define(LOLEND, 1000000).
%% > lolspeed:main().
%% = {10354,ok}
%% == {10991,ok}
%% =:= {8509,ok}
View gist:7493749
(setq tempo-interactive t)
(require 'tempo)
(tempo-define-template "erl-module"
'(
"-module()." n>
n>
"-ifdef(TEST)."n>
"-include_lib(\"eunit/include/eunit.hrl\")."n>
View Dockerfile
FROM base
MAINTAINER Brian L. Troutwine "brian@troutwine.us"
RUN apt-get update
RUN apt-get install -y curl
RUN curl -O https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
RUN dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update
View results.md

I modified the appropriate section of v1to2.sh to look like:

echo "UPGRADING NODE TO 0.1.1"
./bin/beat-0.1.0 upgrade "0.1.1/beat"

echo "DOWNGRADE NODE TO 0.1.0"
./bin/beat-0.1.0 upgrade "0.1.0/beat"
View Dockerfile
FROM ubuntu
MAINTAINER Brian L. Troutwine "brian@troutwine.us"
RUN apt-get update
RUN apt-get install -y curl
RUN curl https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb --remote-name
RUN dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update
View upgrade_attempt_log.md

I run v1to2.sh, included in this gist, to get everything in place in /tmp/beat

> sh v1to2.sh 
Switched to branch 'v1'
==> beat_core (clean)
==> beat_tcp_api (clean)
==> beat (clean)
... 99 skip a few ...
a ./erts-5.9.3/bin/typer
View gist:6027200
> erl
Erlang R15B03 (erts-5.9.3) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9.3 (abort with ^G)
1> Foo = <<"foo">>.
<<"foo">>
2> ets:new(list_to_atom(binary_to_list(Foo)), [set, named_table]).
foo
3> ets:i().
id name type size mem owner
@blt
blt / sfml.rb
Last active Dec 17, 2015 — forked from juniorz/sfml.rb
View sfml.rb
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Sfml < Formula
homepage 'http://www.sfml-dev.org'
version '2.0'
url 'http://www.sfml-dev.org/download/sfml/2.0/SFML-2.0-sources.zip'
View fresh_run.txt
(walden) ~/projects/com/github/mindreframer/riemann-vagrant
blt> vagrant destroy
Are you sure you want to destroy the 'default' VM? [Y/N] Y
[default] Destroying VM and associated drives...
(walden) ~/projects/com/github/mindreframer/riemann-vagrant
blt> vagrant status
Current VM states:
default not created
View vagrant_up.txt
(walden) ~/projects/com/github/mindreframer/riemann-vagrant
blt> vagrant up
[default] Importing base box 'precise64'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.2.0
You can’t perform that action at this time.