Skip to content

Instantly share code, notes, and snippets.

View gordyt's full-sized avatar

Gordon Tillman gordyt

  • Rebellion Defense
  • Houston, Texas
View GitHub Profile
@gordyt
gordyt / .tmux.conf
Created October 14, 2014 19:02
sample tmux config file
# Enable Chris Johnson's wrapper to allow tmux to have access
# to pbcopy and pbpaste commands.
# Examples:
# 1. send contents of current tmu buffer to system clipboard:
# tmux show-buffer | pbcopy
# 2. paste clipboard contents:
# tmux set-buffer pbpaste; tmux paste-buffer
set-option -g default-command "reattach-to-user-namespace -l zsh"
@gordyt
gordyt / app.config
Created May 27, 2011 23:53
output from riaksearch-admin cluster_info
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
[
%% Riak Core config
{riak_core, [
%% Default location of ringstate
{ring_state_dir, "/var/lib/riaksearch/ring" },
%% http is a list of IP addresses and TCP ports that the Riak
%% HTTP interface will bind.
@gordyt
gordyt / process_info
Created May 31, 2011 15:49
Output from erlang:process_info for two non-empty mailboxes
%%-----------------------------------------------------------------------------
{3,<0.32523.81>},
%%-----------------------------------------------------------------------------
erlang:process_info(list_to_pid("<0.32523.81>"), [messages, current_function, initial_call, links, memory, status]).
[{messages,[{'EXIT',<0.32522.81>,normal},
{results,[{<<"mstore">>,
<<"fb8c845b2b248f47b0e11b9b8672c52d9">>,
@gordyt
gordyt / it_op_collector_loop
Created June 6, 2011 14:47
riak_search_op_utils.erl - update 1
it_op_collector_loop(Parent, Ref, []) ->
receive
{results, Results, Ref} ->
%%error_logger:error_msg("it_op_collector_loop/3: results Parent=~p, Ref=~p~n", [Parent, Ref]),
it_op_collector_loop(Parent, Ref, Results);
{disconnect, Ref} ->
%%error_logger:error_msg("it_op_collector_loop/3: disconnect Parent=~p, Ref=~p~n", [Parent, Ref]),
it_op_collector_loop(Parent, Ref, eof);
{'EXIT', Parent, _} ->
error_logger:error_msg("it_op_collector_loop/3: exit (1) Parent=~p, Ref=~p~n", [Parent, Ref]),
@gordyt
gordyt / riak-1.0.1-errors-log
Created October 28, 2011 16:18
Riak 1.0.1 Errors - LOG MESSAGE
==> /var/log/riak/console.log <==
2011-10-28 11:04:21.900 [error] <0.993.0> gen_fsm <0.993.0> in state initialize terminated with reason: bad argument in call to erlang:hd([]) in riak_core_ring:index_owner/2
2011-10-28 11:04:21.906 [error] <0.993.0> CRASH REPORT Process <0.993.0> with 0 neighbours crashed with reason: bad argument in call to erlang:hd([]) in riak_core_ring:index_owner/2
2011-10-28 11:04:21.930 [error] <0.257.0> Supervisor riak_kv_keys_fsm_sup had child undefined started with {riak_core_coverage_fsm,start_link,undefined} at <0.993.0> exit with reason bad argument in call to erlang:hd([]) in riak_core_ring:index_owner/2 in context child_terminated
==> /var/log/riak/crash.log <==
2011-10-28 11:04:21 =ERROR REPORT====
** State machine <0.993.0> terminating
** Last event in was timeout
** When State == initialize
@gordyt
gordyt / riak-1.0.1-status
Created October 28, 2011 16:22
Riak 1.0.1 Errors - STATUS
Attempting to restart script through sudo -u riak
1-minute stats for 'MezeoCloud@10.0.0.10'
-------------------------------------------
vnode gets : 16
vnode_puts : 0
vnode_index_reads : 0
vnode_index_writes : 0
vnode_index_writes_postings : 0
vnode_index_deletes : 0
vnode_index_deletes_postings : 0
@gordyt
gordyt / soap-test-results.xml
Created August 18, 2017 18:15
zmsoap test run results from 2017-08-18 on zcs-dev docker container running 8.8.1 beta
<RunUnitTestsResponse numFailed="42" numSkipped="51" numExecuted="881" xmlns="urn:zimbraAdmin">
<results>
<completed name="testWaitSets" class="com.zimbra.qa.unittest.TestWaitSet" execSeconds="4.38"/>
<completed name="testSyncWaitSetRequest" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="2.42"/>
<completed name="testFolderInterestSyncWaitSetRequest" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="4.62"/>
<completed name="testFolderInterestSyncAdminWaitSetRequest" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="1.70"/>
<completed name="testDestroyWaitset" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="0.22"/>
<completed name="testBlockingAdminWaitAllAccounts" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="10.63"/>
<completed name="testBlockingAdminWait2Accounts" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="10.49"/>
<completed name="testBlockingAdminWait1Account" class="com.zimbra.qa
@gordyt
gordyt / 2017-08-21 zm-qa build failure
Created August 21, 2017 15:28
Getting the following error on two different Ubuntu 16.04 build machines
compile:
[javac] Compiling 35 source files to /home/zimbra/zcs/zm-qa/build/classes
[javac] An exception has occurred in the compiler (1.8.0_92-zimbra). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com)
after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
[javac] java.lang.NullPointerException
[javac] at com.sun.tools.javac.code.Lint.augment(Lint.java:71)
[javac] at com.sun.tools.javac.comp.Flow$AliveAnalyzer.visitVarDef(Flow.java:530)
[javac] at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:852)
[javac] at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
[javac] at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404)
@gordyt
gordyt / 2017-08-21 ProxySoapHttpTransport.diff
Created August 21, 2017 16:03
Diff of Proxy Soap Transport for zm-qa develop
zimbra@zms-dev:/home/zimbra/zcs/zm-qa$ git diff stash@{0}
diff --git a/src/java/com/zimbra/qa/soap/ProxySoapHttpTransport.java b/src/java/com/zimbra/qa/soap/ProxySoapHttpTransport.java
index c0164c2..38504ad 100644
--- a/src/java/com/zimbra/qa/soap/ProxySoapHttpTransport.java
+++ b/src/java/com/zimbra/qa/soap/ProxySoapHttpTransport.java
@@ -308,13 +308,6 @@ public class ProxySoapHttpTransport extends com.zimbra.common.soap.SoapTransport
}
@Override
- public Element invoke(Element document, boolean raw, boolean noSession, String requestedAccountId, String changeToken,
@gordyt
gordyt / soap-test-results.xml
Created August 18, 2017 18:15
zmsoap test run results from 2017-08-18 on zcs-dev docker container running 8.8.1 beta
<RunUnitTestsResponse numFailed="42" numSkipped="51" numExecuted="881" xmlns="urn:zimbraAdmin">
<results>
<completed name="testWaitSets" class="com.zimbra.qa.unittest.TestWaitSet" execSeconds="4.38"/>
<completed name="testSyncWaitSetRequest" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="2.42"/>
<completed name="testFolderInterestSyncWaitSetRequest" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="4.62"/>
<completed name="testFolderInterestSyncAdminWaitSetRequest" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="1.70"/>
<completed name="testDestroyWaitset" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="0.22"/>
<completed name="testBlockingAdminWaitAllAccounts" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="10.63"/>
<completed name="testBlockingAdminWait2Accounts" class="com.zimbra.qa.unittest.TestWaitSetRequest" execSeconds="10.49"/>
<completed name="testBlockingAdminWait1Account" class="com.zimbra.qa