Skip to content

Instantly share code, notes, and snippets.

View ixmatus's full-sized avatar

Parnell Springmeyer ixmatus

View GitHub Profile
Host cmoon.chrisweaver.com
User cweaver
IdentityFile ~/.ssh/{yourkey}
IdentitiesOnly yes
PasswordAuthentication no
http://www.jerf.org/iri/post/2908
http://mwotton.github.com/hs_gbu/
http://reddit.com/r/haskell/comments/y6i7d/do_we_have_real_world_examples_of_where_static/
http://reddit.com/r/haskell/comments/12e3a0/the_good_the_bad_and_the_ugly_haskell_in/
http://blog.codersbase.com/2010/09/composability-laziness-testing-and.html
https://www.fpcomplete.com/user/imalsogreg/functional-programming-elevator-pitch
http://evincarofautumn.blogspot.com/2012/07/so-i-write-compilers-for-living-now.html
http://www.reddit.com/r/haskell/comments/2gz7s1/please_point_me_at_an_eloquent_paper_or_post_on/
-- Once we have an AMQP connection (which is stuffed into the RouterState data type) we then spawn multiple subscribers.
startSubscribers :: RouterState -> IO ()
startSubscribers r = do
stamp <- createTimestamp
tlist <- replicateM (amqpConsumers $ rstateSettings r) $ subscribe r
-- Link ALL of the async subscribers to this parent
debugM "Console" $ stamp ++ " [DEBUG] Linking subscribers"
forM_ tlist link
{cover_enabled, true}.
{erl_opts, [ debug_info
, {i, "deps/*/include"}
, {i, "apps/*/include"}
, {i, "apps/include"}
]}.
{edoc_opts, [{preprocess, true}]}.
{relx,
[ {extended_start_script, false}
, {include_src, false}
, {vm_args, "./config/vm.args"}
, {sys_config, "./config/sys.config"}
, {root_dir, "/opt/arm/lib/erlang"}
, {lib_dirs, ["./apps/*/ebin"]}
, {include_erts, "/opt/arm/lib/erlang"}
, {release, {lightpad, "1.0.0"},
[ "plumlog>=1.0.0"
-module(new_dim_handler).
-export([init/3]).
-export([allowed_methods/2]).
-export([ content_types_provided/2
, content_types_accepted/2
]).
-export([ dim_to_json/2
, dim_from_json/2
@ixmatus
ixmatus / gist:af352b3f01a0934acd9f
Created February 25, 2015 18:27
Sample rabbitmq_management plugin output
RABBITMQ_OBJECT_TOTALS_QUEUES 43 rabbit@production
RABBITMQ_OBJECT_TOTALS_CHANNELS 60 rabbit@production
RABBITMQ_OBJECT_TOTALS_EXCHANGES 9 rabbit@production
RABBITMQ_OBJECT_TOTALS_CONSUMERS 49 rabbit@production
RABBITMQ_OBJECT_TOTALS_CONNECTIONS 48 rabbit@production
RABBITMQ_MESSAGE_STATS_DELIVER 10195492 rabbit@production
RABBITMQ_MESSAGE_STATS_DELIVER_DETAILS_RATE 1.4 rabbit@production
RABBITMQ_MESSAGE_STATS_DELIVER_GET 10195495 rabbit@production
RABBITMQ_MESSAGE_STATS_DELIVER_GET_DETAILS_RATE 1.4 rabbit@production
RABBITMQ_MESSAGE_STATS_REDELIVER 1189 rabbit@production
{"1.0.48",
[
{"1.0.45",[],
[{load_object_code,{bluetooth,"1.1.0",
[bluetooth,bluetooth_app,bluetooth_sup]}},
{load_object_code,{psoc,"1.1.1",
[pobox,pobox_handler,psoc,psoc_app,
psoc_config_change_sync,psoc_dets_sync,
psoc_pobox_dimmer,psoc_pobox_power,
psoc_pobox_sup,psoc_pobox_temperature,psoc_sup]}},
ip-10-0-0-9% sudo apt-get install datadog-agent
Reading package lists... Done
Building dependency tree
Reading state information... Done
datadog-agent is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up datadog-agent (1:5.2.1-1) ...
ip-10-0-0-9% systemctl status datadog-agent.service
● datadog-agent.service - LSB: Start and stop dd-agent
Loaded: loaded (/etc/init.d/datadog-agent)
Active: failed (Result: exit-code) since Wed 2015-03-04 16:56:50 UTC; 1min 14s ago
Process: 20791 ExecStart=/etc/init.d/datadog-agent start (code=exited, status=3)