Skip to content

Instantly share code, notes, and snippets.

asd

$$a_b+a^c$$

package test;
import java.util.Random;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
  1. General Background and Overview
@mabn
mabn / gist:de4d9260ffc84efa8697
Created March 15, 2015 15:50
eraseredis.sh - small script to erase redis without making it unresponsive and causing failover
#!/bin/bash
CNT=10
SLEEP=10
function show_help {
echo "Usage: $0 -a auth_token -h host [-c count_per_iteration] [-s sleep_after_iteration]"
}
while getopts "h:c:s:a:?" opt; do
case "$opt" in
\?)
final boolean doReconnect() {
Exception failure = null;
synchronized (reconnectMutex) {
// First ensure we are up to date.
doUpdateURIsFromDisk();
if (disposed || connectionFailure != null) {
reconnectMutex.notifyAll();
}