Shell
A hacky one-liner shell command to dump all JMX beans from a Jolokia endpoint using curl, python -m json.tool, and other shell utilities.
Posted on 2014-10-08
A quick guide on how to execute shell commands from Groovy, including how to handle commands with pipes.
Posted on 2014-09-19
A workaround for installing or upgrading the Adobe Flash plugin on Ubuntu when you are behind a proxy that the installer doesn’’t respect, by downloading the plugin manually and serving it from a local web server.
Posted on 2013-10-01
A recommendation to always test your Puppet modules, with a simple shell script to automate the process by running puppet apply --noop on all test files.
Posted on 2013-05-09
A shell one-liner that uses awk to remove lines matching a specific pattern from all files within a directory structure.
Posted on 2013-03-14
A Python script that simplifies accessing JMX beans via the Jolokia HTTP bridge, allowing you to easily read and write JMX attributes from the command line.
Posted on 2013-01-15
A post that debunks the myth that saving a JPEG multiple times at 100% quality does not degrade the image, with a script to demonstrate the quality loss.
Posted on 2013-01-02
A description of a problem with the Tanuki Software Java Service Wrapper where the $HOME environment variable is not correctly set when the service is started as root but runs as a different user, and a solution provided by the Tanuki support team.
Posted on 2012-12-21
A simple shell function to automatically switch between different Maven settings.xml files based on the current network environment, useful for when you’’re moving between work and home.
Posted on 2012-10-18
A one-line command using ImageMagick’’s convert to easily create a PDF file from a series of images.
Posted on 2012-07-01
A quick guide for experienced Linux users on how to set up a local Postfix server to act as a relay to Amazon Simple Email Service (SES).
Posted on 2012-06-08