Skip to content

Instantly share code, notes, and snippets.

View dvliman's full-sized avatar

David Liman dvliman

View GitHub Profile
([email protected])6> rp(v(5)).
[{tt_devapi_roles_service_SUITE,create_role_keywords,ok,
8933573},
{tt_devapi_roles_service_SUITE,create_role_no_owners,ok,
1515910},
{tt_devapi_roles_service_SUITE,create_role_with_owners,ok,
831804},
{tt_devapi_roles_service_SUITE,create_role_saml_enabled_org,
ok,1104153},
{tt_devapi_roles_service_SUITE,create_role_non_saml_enabled_org,
readonly LOG_DEFAULT_COLOR=$(tput sgr0) # Clear colors
readonly LOG_ERROR_COLOR=$(tput setaf 1) # Red
readonly LOG_INFO_COLOR=$(tput sgr 0) # White
readonly LOG_SUCCESS_COLOR=$(tput setaf 2) # Green
readonly LOG_WARN_COLOR=$(tput setaf 3) # Yellow
readonly LOG_DEBUG_COLOR=$(tput setaf 4) # Blue
^C
dliman@dev-full-i-06d10a21916387f7f:/opt/developer_api/log$ exit a
logout
-bash: exit: a: numeric argument required
Connection to 10.0.11.114 closed.
dliman@admin-bastion-i-dd0e5846:~$ cat fabfile.py
import os, sys, re, boto, urllib2, itertools, time
from boto.ec2 import connect_to_region
from fabric.api import env, run, cd, settings, sudo, open_shell
from fabric.api import parallel
@dvliman
dvliman / feb23-roles-service-test
Created February 23, 2017 22:31
feb23-roles-service-test
([email protected])4> rp(v(2)).
[{tt_devapi_roles_service_SUITE,create_role_keywords,ok,
8696256},
{tt_devapi_roles_service_SUITE,create_role_no_owners,ok,
1467221},
{tt_devapi_roles_service_SUITE,create_role_with_owners,ok,
795725},
{tt_devapi_roles_service_SUITE,create_role_saml_enabled_org,
ok,990792},
{tt_devapi_roles_service_SUITE,create_role_non_saml_enabled_org,
{application, gd,
[{description, "gd"},
{vsn, "0.1.0"},
{registered, [gd_sup]},
{mod, {gd_app, []}},
{applications, [
kernel,
stdlib,
lager,
gproc,
@dvliman
dvliman / .ssh-config
Created February 10, 2017 00:36
.ssh-config
Host sin-bastion
User dliman
HostName 52.220.46.107
ForwardAgent yes
ControlPath ~/.ssh/cm-%r@%h:%p
ControlMaster auto
ControlPersist 10m
Host prodsg-*
ProxyCommand ssh sin-bastion -AW %h:%p
dliman@qa-roles-i-40f58a56:~$ cat /usr/local/bin/roles
#!/bin/bash
# Shell connect
set -e
NAME=`uuidgen | sed -e 's/-//g'`
COOKIE=`grep cookie /opt/roles/etc/vm.args| cut -d' ' -f2`
CLUSTER_NAME=`grep name /opt/roles/etc/vm.args | awk '{print $2}'`
cd /opt/roles/erts-*/bin
ets:select_delete(test5,[{{'$1','$2'},[{'==','$1',a}],[true]}]).
([email protected])7> tt_test_utils:test_suite(kafka_SUITE).
** exception error: {compile_forms,{error,[{"apps/ttserver/include/org_obj.hrl",
[{21,erl_lint,{type_syntax,integer}},
{22,erl_lint,{type_syntax,integer}},
{23,erl_lint,{type_syntax,integer}},
{24,erl_lint,{type_syntax,integer}},
{73,erl_lint,{type_syntax,integer}},
{78,erl_lint,{type_syntax,integer}},
{88,erl_lint,{type_syntax,integer}},
{89,erl_lint,{type_syntax,integer}}]},
23:09:03 <{cowboy_protocol,init,4}> {tt_devapi_connection,post_message,
[{[{<<"sender_token">>,
<<"a95be8a7-961a-479a-946d-cd9f2633585a">>},
{<<"sender_resource">>,
<<"bcced49b-a47e-483a-ba2f-be6dcc77b043">>},
{<<"data">>,[]},
{<<"attachments">>,
{[{<<"attachment">>,
{[{<<"filename">>,<<"a_file">>},