Skip to content

Instantly share code, notes, and snippets.

View gist:ce5b7530b54b134b79e6
package net.ibogner.dynamo;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentialsProviderChain;
import com.amazonaws.auth.InstanceProfileCredentialsProvider;
import com.amazonaws.auth.profile.ProfileCredentialsProvider;
import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient;
import com.amazonaws.services.dynamodbv2.document.BatchWriteItemOutcome;
View gist:fb11db12dad3c6a5b509
This file has been truncated, but you can view the full file.
mbpro:/gitwork/jest$ netstat -an | grep LISTEN
tcp4 0 0 *.52230 *.* LISTEN
tcp4 0 0 *.4369 *.* LISTEN
tcp4 0 0 127.0.0.1.52937 *.* LISTEN
tcp4 0 0 *.49757 *.* LISTEN
tcp4 0 0 127.0.0.1.63342 *.* LISTEN
tcp4 0 0 127.0.0.1.6942 *.* LISTEN
tcp4 0 0 127.0.0.1.37483 *.* LISTEN
tcp4 0 0 127.0.0.1.29754 *.* LISTEN
View gtk-firefox.sh
#!/bin/bash
# GTK+ and Firefox for Amazon Linux
# Written by Joseph Lawson 2012-06-03
# http://joekiller.com
# http://joekiller.com/2012/06/03/install-firefox-on-amazon-linux-x86_64-compiling-gtk/
# chmod 755 ./gtk-firefox.sh
# sudo ./gtk-firefox.sh
View WebPageTestRunner.java
package com.bazaarvoice.mbogner.utils;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;