Skip to content

Instantly share code, notes, and snippets.

View xxx's full-sized avatar

Michael Dungan xxx

View GitHub Profile
@xxx
xxx / JolokiaCommands.md
Created February 10, 2017 23:08 — 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.

@xxx
xxx / image_resize.js
Created April 6, 2012 02:08 — forked from felixge/image_resize.js
On demand image resizing with node.js in
// Usage: http://localhost:8080/image.jpg/100x50
var http = require('http');
var spawn = require('child_process').spawn;
http.createServer(function(req, res) {
var params = req.url.split('/');
var convert = spawn('convert', [params[1], '-resize', params[2], '-']);
res.writeHead(200, {'Content-Type': 'image/jpeg'});
convert.stdout.pipe(res);