Skip to content

Instantly share code, notes, and snippets.


Dominik Dary DominikDary

View GitHub Profile
DominikDary / Master Replacement with Static
Created Jul 1, 2019 — forked from bernadinm/Master Replacement with Static
Procedure to Replace Single Master with Master Discovery Set to Static
View Master Replacement with Static

Master Replacement with Static List Procedure

Objective: WIth this procedure, we want to replace node with node Also, it is required that we change exhibitor_zk_path to something unique in order for this procedure to work.


Configure the bootstrap node with the modified config.yaml that has a change to a new exhibitor_zk_path along with the master node that you want to replace for master_list

Important NOTE: The most important piece is exhibitor_storage_backend: zookeeper and exhibitor_zk_path: "/masterip-change-20170127". You must set exhibitor_zk_path to be something unique otherwise your cluster wont converge.

DominikDary /
Created Oct 29, 2015 — forked from jamtur01/
Kickstarter Engineering Ladder
View AdobeLogo
DominikDary /
Last active Aug 29, 2015 — forked from lukeis/
javascript:(function(){$('#new_comment_field')[0].value='This is a question rather than an issue. Please send questions to the [selendroid user group](\n\nFor issues please provide a [concise reproducible test case]( and describe what results you are seeing and what results you expect.\n\nSee [architecture.html](';$('button[name="comment_and_close"]').click()})()
View gist:e4504f649e93923b8eb9
View run-command-on-git-revisions
# This script runs a given command over a range of Git revisions. Note that it
# will check past revisions out! Exercise caution if there are important
# untracked files in your working tree.
# This came from Gary Bernhardt's dotfiles:
# Example usage:
View Checkstyle pre-commit hook
# Pre-commit hook for running checkstyle on changed Java sources
# To use this you need:
# 1. checkstyle's jar file somewhere
# 2. a checkstyle XML check file somewhere
# 3. To configure git:
# * git config --add checkstyle.jar <location of jar>
# * git config --add checkstyle.checkfile <location of checkfile>
View console.log
[INFO] --- maven-surefire-plugin:2.14-SNAPSHOT:test (tck-tests) @ arquillian-jbossas-remote-6 ---
[INFO] Surefire report directory: /home/aslak/dev/source/testing/arquillian-container-jbossas/jbossas-remote-6/target/surefire-reports
Running org.arquillian.tck.container.cdi_1_0.CDIBeanLookupWarTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.866 sec
Running org.arquillian.tck.container.servlet_2_5.MultipleWebContextLookupMultiWarTestCase
# iPIN - iPhone PNG Images Normalizer v1.0
# Copyright (C) 2007
# Author:
# Axel E. Brzostowski
# References:
View gist:6633764
public static void driverLogs(WebDriver driver, String className, String methodName) {
LogEntries logs;
try {
logs = driver.manage().logs().get("logcat");
} catch (Exception e) {
} catch (OutOfMemoryError e) {
System.out.println("failed to get logcat due to OOM current max memory:" + Runtime.getRuntime().maxMemory() +
" current free memory: " + Runtime.getRuntime().freeMemory() );
You can’t perform that action at this time.