Migration in progress
Currently migrating content from Blogger, please excuse the chaos. Excerpts and pagination should now be (mostly) correct, a few other useability improvements are still in progress.
-
AWS Tip: Upgrade your PHP 1.x SDK
If you are still using 1.6.2 of the AWS PHP SDK you can expect some strange issues, for example:
$ec2->describe_instances();
Will not list T2 instance types. Save yourself some hassle and upgrade to the latest version with the help of this migration guide.
-
AWS Tip: elmo.ec2sg preventing security group deletion
If you are trying to delete an EC2 security group and get an error something like:
sg-12345678: Group 111222333444:My SG Name is used by groups: 123412341234:elmo.ec2sg.887766
Save yourself some time and check that your ElastiCache and RDS security groups don't reference (by name) the group you are trying to delete. See this forum thread. -
Installing the AWS .NET SDK on Mono/Linux using NuGet
Following a previous post about compiling the AWS .NET SDK on Mono/Linux +David Fevre asked whether it was possible to use NuGet to install the SDK. It turns out that this is actually quite a bit simpler if you are running Mono 3.2+. Below are the steps required to get the AWS SDK working on Mono/Linux (Ubuntu 14.04)
-
Code snippet: Adding a security group egress rule in boto
Quick example of adding an egress rule to an existing security group (turns out cidr_ip is actually required). Assumes you have boto installed and your AWS credentials configured:
import boto
c = boto.connect_ec2()
c.authorize_security_group_egress('sg-xxxxxxx', 'tcp', from_port=1024, to_port=1024, cidr_ip='0.0.0.0/0')
-
JBoss 6.x AS and log4j
This post is a result of spending quite a bit of time working on trying to get a custom log4j (1.2) appender to work on JBoss 6.x. The purpose of this article is not to explain how to get log4j working in a WAR/JAR/EAR, if that is what you are looking for rather have a look here, or here. If you are looking to add a log4j appender to the default JBoss server logging then carry on reading.
-
AWS .NET SDK on Mono/Linux
A quick guide to getting an AWS .NET console program running on Linux. Starting with the hard part, compiling the SDK from source.
-
Data formatting with vim regular expressions
Using the right tool for a job can save massive amounts of time. This is a quick post to demonstrate a practical application of the power of regular expressions in vim. The problem is transforming the output from a SQL query into a wiki ready table format.
-
Curl with Kerberos authentication
Quick note on retrieving content using curl from Kerberos authenticated sites (so that I don't have to reread the man page every 6 months to figure it out). Firstly request a valid Kerberos ticket for forwarding: