Skip to content

Instantly share code, notes, and snippets.

@hyperius
hyperius / QueueSizeCounter.java
Created October 17, 2019 15:34 — forked from sachin-handiekar/QueueSizeCounter.java
Get ActiveMQ Queue Size using MBean (Spring JMX) - QueueSizeCounter.java
package com.sample;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import org.apache.log4j.Logger;
public class QueueSizeCounter {
private MBeanServerConnection mBeanServerConnection;
@hyperius
hyperius / import.sh
Last active July 16, 2024 13:05 — forked from nazartm/import.sh
Import RDS certificates to truststore
#!/bin/sh -e
set -x
# create a temp dir in which to work
OLDDIR="$PWD"
mkdir /tmp/rds-ca && cd /tmp/rds-ca
# download the bundle
wget https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem