Skip to content

Instantly share code, notes, and snippets.

View paulcalabro's full-sized avatar

Paul Calabro paulcalabro

View GitHub Profile
@paulcalabro
paulcalabro / mule
Created July 21, 2017 03:03 — forked from rhoegg/mule
RHEL init.d script for Mule ESB
#!/bin/bash
# RHEL Mule Init Script
#
# chkconfig: 2345 65 64
# description: Mule ESB service
. /etc/init.d/functions
#
if [ -f /etc/sysconfig/mule ]; then
. /etc/sysconfig/mule
@paulcalabro
paulcalabro / replication.sh
Created June 26, 2017 01:10 — forked from valerysntx/replication.sh
Replicates mysql realtime from many to many databases
git clone https://github.com/mysqlDBReplication/replication
- Replicates mysql realtime from many to many databases
https://github.com/mysqlDBReplication/replication/blob/master/src/Master-Master_configuration
SETTING UP MASTER MASTER CONFIGURATION OF MYSQL ON UBUNTU
STEP 1
Install the mysql-server and mysql-client in both the servers
@paulcalabro
paulcalabro / JolokiaCommands.md
Created June 15, 2017 19:12 — forked from yashpatil/JolokiaCommands.md
Jolokia URLs for quick access to A-MQ statistics

This is a quick reference to get to Jolokia statistics urls for JBoss Fuse or JBoss A-MQ statistics. Sometimes, when you are interested in very specific attributes, it's easier to keep monitoring a specific url rather than loading the full Hawtio console.

@paulcalabro
paulcalabro / redis_bulk.sh
Created October 23, 2015 19:11 — forked from egemenyildiz/redis_bulk.sh
[LUA] Redis bulk/batch operation scripts (rename, delete)
# Bulk deletes keys start with "prefix"
EVAL "for i, name in ipairs(redis.call('KEYS', 'prefix*')) do redis.call('DEL', name); end" 0
# Bulk renames keys start with "prefix" to "postfix".
# e.g. prefixwithtail -> postfixwithtail
EVAL "for i, name in ipairs(redis.call('KEYS', 'prefix*')) do local x = string.gsub(name, 'pre', 'post'); redis.call('RENAME', name, x); end" 0