Skip to content

Instantly share code, notes, and snippets.

View ixmatus's full-sized avatar

Parnell Springmeyer ixmatus

View GitHub Profile
<metal:main use-macro="view.global_template">
<div metal:fill-slot="header">
<h1>Dashboard</h1>
</div>
<div metal:fill-slot="content">
<p>This is a place holder.</p>
</div>
</metal:main>
(setq-default tab-width 4)
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))
;; Force 'other' modes to use the bsd style tabs (important!!!)
(setq c-default-style
'(((c-mode . "bsd") (c++-mode . "bsd") (other . "bsd"))))
;; Fix the worse part about emacs: indentation craziness
;; 1. When I hit the TAB key, I always want a TAB character inserted
@ixmatus
ixmatus / gist:4080637
Created November 15, 2012 19:25
pip packages
mailsnake==1.3.0.0
mechanize==0.2.5
mercurial==2.3.1
nose==1.1.2
oauth2==1.5.211
pdfcrowd==2.3
protobuf==2.4.1
py-bcrypt==0.2
pyPdf==1.13
pycrypto==2.6
@ixmatus
ixmatus / gist:4080625
Created November 15, 2012 19:23
pserve output
pyramid ❯❯❯ pserve development.ini (env: whoosh)
/Users/ixmatus/.virtualenvs/whoosh/lib/python2.7/site-packages/SQLAlchemy-0.7.7-py2.7-macosx-10.7-intel.egg/sqlalchemy/orm/properties.py:1208: SAWarning: No ForeignKey objects were present in secondary table 'pools'. Assumed referenced foreign key columns 'pools.active', 'pools.coconuts', 'pools.date_created', 'pools.date_modified', 'pools.id', 'pools.price', 'pools.removed', 'pools.service_id', 'pools.user_id' for join condition 'pools.removed = :removed_1' on relationship User.poolz
/Users/ixmatus/.virtualenvs/whoosh/lib/python2.7/site-packages/SQLAlchemy-0.7.7-py2.7-macosx-10.7-intel.egg/sqlalchemy/orm/properties.py:1199: SAWarning: No ForeignKey objects were present in secondary table 'pools'. Assumed referenced foreign key columns 'pools.active', 'pools.coconuts', 'poo
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)
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) ...
{"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]}},
@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
-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
{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"