Skip to content

Instantly share code, notes, and snippets.

@matthewbogner
matthewbogner / WebPageTestRunner.java
Created January 23, 2012 15:40
WebPageTestRunner
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;
#!/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
@matthewbogner
matthewbogner / gist:fb11db12dad3c6a5b509
Created September 25, 2014 14:44
jest test failures
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
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;