Skip to content

Instantly share code, notes, and snippets.

@jludvice
jludvice / Wrap.java
Created August 31, 2017 11:15
Designed to reasonably wrap lines in karaf feature:install error output.
import java.awt.Toolkit;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
/**
* Fetch text from system clipboard and print to stdout.
* Designed to reasonably wrap lines in karaf feature:install error output.
*/
public class Wrap {
@jludvice
jludvice / gh.go
Last active August 2, 2017 08:55
github cleanup
package main
import (
// pass github access token to http client
"golang.org/x/oauth2"
"context"
"strings"
// cli options
"flag"
<!DOCTYPE html>
<html>
<head>
<title>Cucumber Feature Report</title>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" >
<style type="text/css">
.panel-heading {
padding: 0;
}
@jludvice
jludvice / cucumber-report.html
Created March 16, 2017 19:03
Cucumber report
<!DOCTYPE html>
<html>
<head>
<title>Cucumber Feature Report</title>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" >
<style type="text/css">
.panel-heading {
padding: 0;
}
@jludvice
jludvice / dips.sh
Last active August 4, 2016 06:27
Generate dnsmasq host file from running docker containers
#!/bin/env bash
CONF='/etc/dnsmasq.d/docker.conf'
NET=`docker network ls | sed 1d | awk '{print $2}'`
dockerips() {
RUNNING_CONTAINERS=`docker ps | sed 1d | awk '{print $NF}'`
NETWORK_NAME="$1"
IPS=''
package org.jboss.fuse.qa.tools.jms;
import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;