A custom JRE with Support for JCMD and Remote Debugging
# Java 11
JAVA_TARGET=custom-java-runtime
echo "Create trimmed down JDK" && \
$JAVA_HOME/bin/jlink \
--no-header-files \
A custom JRE with Support for JCMD and Remote Debugging
# Java 11
JAVA_TARGET=custom-java-runtime
echo "Create trimmed down JDK" && \
$JAVA_HOME/bin/jlink \
--no-header-files \
from cachetools import TTLCache | |
from sched import scheduler | |
cache = TTLCache(maxsize=128, ttl=5) | |
runner = scheduler() | |
cache["abc"] = 42 | |
def display_cached_value(cache_key): |
TMP_ROOT=~/tmp/dest | |
rm -rf ~/bro 2>&1 > /dev/null | |
rm -rf "${TMP_ROOT}" 2>&1 > /dev/null | |
mkdir -p "${TMP_ROOT}" 2>&1 > /dev/null | |
git clone --recursive https://github.com/bro/bro.git ~/bro | |
git checkout remotes/origin/topic/seth/remove-flarecd ~/bro && ./configure --prefix=/opt/bro --disable-broker --with-pcap=/opt/snf || exit 1 | |
make install DESTDIR=~/tmp/dest || exit 1 | |
cd ~/ |
#!/usr/bin/ruby | |
# chkconfig: 35 99 01 | |
# description: EC2 DNS registration | |
# processname: ec2hostname | |
require 'aws-sdk' | |
require 'net/http' | |
`touch /var/lock/subsys/ec2hostname` |
package com.cadrlife; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class ShellSplitter { | |
public List<String> shellSplit(CharSequence string) { | |
List<String> tokens = new ArrayList<String>(); | |
boolean escaping = false; | |
char quoteChar = ' '; |