Skip to content

Instantly share code, notes, and snippets.

----
[INFO] Members [4] {
[INFO] Member [192.168.122.1]:5701
[INFO] Member [192.168.122.1]:5702
[INFO] Member [192.168.122.1]:5704
[INFO] Member [192.168.122.1]:5703 this
[INFO] }
[INFO]
[INFO] Sep 07, 2017 1:04:37 PM com.hazelcast.core.LifecycleService
[INFO] INFO: [192.168.122.1]:5703 [dev] [3.6.3] Address[192.168.122.1]:5703 is STARTED
@skoussou
skoussou / WIH without handlingException from AbstractLogOrThrowWorkItemHandler
Created April 18, 2018 18:40
WIH without handlingException from AbstractLogOrThrowWorkItemHandler
public class CustomServiceTaskException implements WorkItemHandler {
//public class CustomServiceTaskException extends AbstractLogOrThrowWorkItemHandler {
private static Logger logger = LoggerFactory.getLogger(CustomServiceTaskException.class);
public void abortWorkItem(WorkItem arg0, WorkItemManager arg1) {
// TODO Auto-generated method stub
}
@skoussou
skoussou / WIH with handlingException from AbstractLogOrThrowWorkItemHandler
Created April 18, 2018 18:44
WIH with handlingException from AbstractLogOrThrowWorkItemHandler
public class CustomServiceTaskException extends AbstractLogOrThrowWorkItemHandler {
private static Logger logger = LoggerFactory.getLogger(CustomServiceTaskException.class);
@Override
public void abortWorkItem(WorkItem arg0, WorkItemManager arg1) {
// TODO Auto-generated method stub
@skoussou
skoussou / RTS PAM Commands
Created November 1, 2018 09:53
RTS PAM Commands
Initial
@skoussou
skoussou / gist:5f4959dcd584895af14d6f8bcd8b9af2
Last active February 13, 2019 18:38
rhmap install stuck
WARN Configuration of an embedded messaging broker within the appserver is enabled but is not recommended. Support for such a configuration will be removed in a future release.
INFO If you are not configuring messaging destinations, to disable configuring an embedded messaging broker set the DISABLE_EMBEDDED_JMS_BROKER environment variable to true.
WARN No password defined for JGroups cluster. AUTH protocol will be disabled. Please define JGROUPS_CLUSTER_PASSWORD.
WARN Environment variable OPENSHIFT_KUBE_PING_NAMESPACE undefined. Clustering will be unavailable. Please refer to the documentation for configuration.
INFO Configuring JGroups discovery protocol to openshift.KUBE_PING
INFO Configuring JGroups cluster traffic encryption protocol to SYM_ENCRYPT.
WARN Detected missing JGroups encryption configuration, the communication within the cluster WILL NOT be encrypted.
INFO Obtained auth token from https://sso-tools.192.168.42.21.nip.io/auth for realm master
/opt/eap/standalone/deployments ~
INFO Registered o
# Bash best practices and style-guide
Just simple methods to keep the code clean.
Inspired by [progrium/bashstyle](https://github.com/progrium/bashstyle) and [Kfir Lavi post](http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/).
## Quick big rules
* All code goes in a function
* Always double quote variables