Skip to content

Instantly share code, notes, and snippets.

Avatar

Dominik Dary DominikDary

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

Master Replacement with Static List Procedure

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

Begin

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
DominikDary / ladder.md
Created Oct 29, 2015 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
View AdobeLogo
@DominikDary
DominikDary / bookmarklet.md
Last active Aug 29, 2015 — forked from lukeis/bookmarklet.md
Selendroid-Close-Non-Issue
View bookmarklet.md
javascript:(function(){$('#new_comment_field')[0].value='This is a question rather than an issue. Please send questions to the [selendroid user group](http://groups.google.com/group/selendroid)\n\nFor issues please provide a [concise reproducible test case](http://sscce.org/) and describe what results you are seeing and what results you expect.\n\nSee [architecture.html](http://selendroid.io/architecture.html#contribute)';$('button[name="comment_and_close"]').click()})()
View gist:e4504f649e93923b8eb9
http://microxchg.io/2015/slides/01_01_lessons-from-a-polyglot-portfolio.pdf
http://microxchg.io/2015/slides/01_02_microXchg_2015_architekturbewertung_szoerner.pdf
http://microxchg.io/2015/slides/01_03_SpringCloud.pdf
http://microxchg.io/2015/slides/01_04_microservicesscalafunctionaldomainmodelsmunichberlin2015-150217091332-conversion-gate02.pdf
http://microxchg.io/2015/slides/01_05_uwe_friedrichsen_microservices.pdf
http://microxchg.io/2015/slides/01_06_micro_service_challenges.pdf
http://microxchg.io/2015/slides/01_07_2015-02-13-microXchg-StefanTilkov.pdf
http://microxchg.io/2015/slides/01_08_AdrianCockcroftSlides.pdf
http://microxchg.io/2015/slides/01_09_PrinciplesOfMicroservices-Microxchg.pdf
http://microxchg.io/2015/slides/01_10_MicroServices_-_Are_your_frameworks_ready--microxchg.pdf
View run-command-on-git-revisions
#!/bin/bash
#
# 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:
# https://github.com/garybernhardt/dotfiles
#
# Example usage:
View Checkstyle pre-commit hook
#!/usr/bin/perl
#
# 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]
[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
-------------------------------------------------------
T E S T S
-------------------------------------------------------
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
View ipin.py
#---
# iPIN - iPhone PNG Images Normalizer v1.0
# Copyright (C) 2007
#
# Author:
# Axel E. Brzostowski
# http://www.axelbrz.com.ar/
# axelbrz@gmail.com
#
# 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) {
return;
} 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() );
return;
You can’t perform that action at this time.