Skip to content

Instantly share code, notes, and snippets.

View puzza007's full-sized avatar
💭
💅

Paul Oliver puzza007

💭
💅
View GitHub Profile
(ubic@Pauls-MacBookPro)3> {ok, Pid} = riakc_poolboy:start_pool(foo_pool, SizeArgs, WorkerArgs).
{ok,<0.2666.0>}
(ubic@Pauls-MacBookPro)4> 17:27:07.509 [debug] Supervisor riakc_poolboy_sup started poolboy:start_link([{name,{local,foo_pool}},{worker_module,riakc_poolboy_worker},{size,10},{max_overflow,20}], [{hostname,"127.0.0.1"},{port,8087},{options,[{auto_reconnect,true}]}]) at pid <0.2666.0>
(ubic@Pauls-MacBookPro)4> poolboy:stop(foo_pool).
ok
(ubic@Pauls-MacBookPro)5> 17:27:27.216 [error] Supervisor riakc_poolboy_sup had child foo_pool started with poolboy:start_link([{name,{local,foo_pool}},{worker_module,riakc_poolboy_worker},{size,10},{max_overflow,20}], [{hostname,"127.0.0.1"},{port,8087},{options,[{auto_reconnect,true}]}]) at <0.2666.0> exit with reason normal in context child_terminated
17:27:27.219 [debug] Supervisor riakc_poolboy_sup started poolboy:start_link([{name,{local,foo_pool}},{worker_module,riakc_poolboy_worker},{size,10},{max_overflow,20}], [{hostname,"127.0.0.1"},{port,8087},{options,[{
@puzza007
puzza007 / pm10.csv
Last active December 29, 2015 02:29
We can't make this file beautiful and searchable because it's too large.
"2004-10-01 00:00",29
"2004-10-01 01:00",33
"2004-10-01 02:00",31
"2004-10-01 03:00",31
"2004-10-01 04:00",69
"2004-10-01 05:00",59
"2004-10-01 06:00",93
"2004-10-01 07:00",76
"2004-10-01 08:00",55
"2004-10-01 09:00",55
@puzza007
puzza007 / or_or_or.erl
Last active December 27, 2015 12:29 — forked from mietek/or_or_or.erl
-module(or_or_or).
-compile(export_all).
f1(X) ->
if
length(X) =:= 1; size(X) =:= 1 ->
okay;
true ->
nope
@puzza007
puzza007 / gist:7301292
Created November 4, 2013 11:30
erlcloud r16b02
Compiled src/erlcloud_mon.erl
/Users/puzza/src/ubic/deps/erlcloud/src/erlcloud_s3.erl:584: Warning: crypto:sha_mac/2 is deprecated and will be removed in in a future release; use crypto:hmac/3
/Users/puzza/src/ubic/deps/erlcloud/src/erlcloud_s3.erl:720: Warning: crypto:md5/1 is deprecated and will be removed in in a future release; use crypto:hash/2
/Users/puzza/src/ubic/deps/erlcloud/src/erlcloud_s3.erl:777: Warning: crypto:sha_mac/2 is deprecated and will be removed in in a future release; use crypto:hmac/3
Compiled src/erlcloud_s3.erl
Compiled src/erlcloud_xml.erl
/Users/puzza/src/ubic/deps/erlcloud/src/erlcloud_mturk.erl:1602: Warning: crypto:sha_mac/2 is deprecated and will be removed in in a future release; use crypto:hmac/3
puzza@Pauls-MacBookPro ~/src/cloudi-quickstart $ cat !$
cat hello_world.erl
-module(hello_world).
-behaviour(cloudi_service).
%% cloudi_service callbacks
-export([cloudi_service_init/3,
cloudi_service_handle_request/11,
cloudi_service_handle_info/3,
cloudi_service_terminate/2]).
@puzza007
puzza007 / gist:5706858
Created June 4, 2013 15:33
CloudI OSX Mountain Lion build
libtool: link: sed -e 's,^,_,' < .libs/libcloudi_socket_drv.exp > .libs/libcloudi_socket_drv-symbols.expsym
libtool: link: g++ -o .libs/libcloudi_socket_drv.so -bundle .libs/libcloudi_socket_drv_la-cloudi_socket_drv.o .libs/libcloudi_socket_drv_la-assert.o -O2 -Wl,-exported_symbols_list,.libs/libcloudi_socket_drv-symbols.expsym
Undefined symbols for architecture x86_64:
"_enif_get_int", referenced from:
_libcloudi_socket_drv_local_listen in libcloudi_socket_drv_la-cloudi_socket_drv.o
_libcloudi_socket_drv_local_accept in libcloudi_socket_drv_la-cloudi_socket_drv.o
"_enif_get_string", referenced from:
_libcloudi_socket_drv_local_listen in libcloudi_socket_drv_la-cloudi_socket_drv.o
_libcloudi_socket_drv_local_accept in libcloudi_socket_drv_la-cloudi_socket_drv.o
"_enif_make_atom", referenced from:
@puzza007
puzza007 / port.ii
Created March 23, 2013 20:23
port.ii from GEPD
# 1 "port.cpp"
# 1 "/Users/puzza/src/GEPD//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "./test_bindings.h" 1
# 93 "./test_bindings.h"
# 1 "/usr/local/include/boost/preprocessor/cat.hpp" 1 3
# 17 "/usr/local/include/boost/preprocessor/cat.hpp" 3
# 1 "/usr/local/include/boost/preprocessor/config/config.hpp" 1 3
# 18 "/usr/local/include/boost/preprocessor/cat.hpp" 2 3
@puzza007
puzza007 / GEPD build.log
Created March 23, 2013 17:17
Build log for GEPD
puzza@Pauls-MacBookPro ~/src/GEPD/build (master*) $ cmake ..
-- Using OTP lib: /usr/local/Cellar/erlang/R16B/lib/erlang/lib - found
-- Using erl_interface version: erl_interface-3.7.11
-- Using erts version: erts-5.10.1
-- Boost version: 1.53.0
-- The C compiler identification is Clang 4.2.0
-- The CXX compiler identification is Clang 4.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
@puzza007
puzza007 / mig.py
Created March 15, 2013 15:54 — forked from Jach/mig.py
'''
Steps:
1. Create any milestones
2. Create any labels
3. Create each issue, linking them to milestones and labels
3.1: Update status for new issue if closed
4: Create all the comments for each issue
'''
import getpass
import json
@puzza007
puzza007 / foo.erl
Created October 23, 2012 17:55
Proper record generator
-module(foo).
-include_lib("proper/include/proper.hrl").
-type audio_reference_type() :: user | department | client | system.
-compile(export_all).
-record(tf_audio_reference, {
type :: audio_reference_type(),