This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL := /bin/sh | |
EXE := pkg | |
SRC := $(wildcard *.go) | |
COVER := cover.out | |
.DEFAULT_GOAL := all | |
.PHONY: all | |
all: $(EXE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// This command will allow you to provision, delete, describe, or estimate the cost of the specified CloudFormation template. | |
// | |
// Once compiled use the -help flag for details. | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"io/ioutil" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main_test | |
import ( | |
"reflect" | |
"testing" | |
) | |
type fluff struct { | |
Name string | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "Performance Analysis" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Usage: | |
# | |
# ip_locations.py LOCATIONS BLOCKS RESERVOIR | |
# | |
# Dependencies: | |
# | |
# - reservoir sample set with 'ips' column. | |
# - MaxMind IP and Location CSV. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0", | |
"networks": { | |
"ldn-dmz-prod": {"ip": "172.168.3.0", "mask": "/24"}, | |
"ldn-dmz-priv": {"ip": "192.168.3.0", "mask": "/24"}, | |
}, | |
"services": { | |
"http": {"tcp_ports": 80}, | |
"https": {"tcp_ports": 443}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.NetworkInterface; | |
import java.util.Enumeration; | |
public class NetIf { | |
public static void main(String [] args) { | |
try { | |
Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); | |
while (en.hasMoreElements()) { | |
NetworkInterface nif = en.nextElement(); | |
Enumeration<NetworkInterface> suben = nif.getSubInterfaces(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = read.csv("~/workspace/responses.csv") | |
timestamps = data$timestamp | |
responses = data$response | |
plot(timestamps,responses, xlab="Time", ylab="Response Time") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<title>D3 Test</title> | |
<script src="d3.v3.min.js" charset="utf-8"></script> | |
<style type="text/css"> | |
body { | |
margin:0 auto; | |
position:relative; | |
width:958px; | |
} | |
.chart rect { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns pipedream.core | |
(:gen-class) | |
(:require [clojure.tools.logging :as log] | |
[pipejine.core :as pipe])) | |
(defn pipeline [] | |
(let [q1 (pipe/new-queue {:name "q1" | |
:queue-size 5 | |
:number-of-consumer-threads 5 | |
:number-of-producers 1}) |