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
# Given the configuration below. | |
# Expected results list of users in bip.conf. | |
# Actual results in an empty file. | |
# bip.conf | |
<% | |
usernames = scope.lookupvar('users::usernames') | |
fullnames = scope.lookupvar('users::fullnames') | |
-%> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.provision :puppet do |puppet| | |
# equivalent to; | |
# puppet apply manifests/base.pp |
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}) |
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
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
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
{ | |
"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
#!/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
{ | |
"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
package main_test | |
import ( | |
"reflect" | |
"testing" | |
) | |
type fluff struct { | |
Name string | |
} |
OlderNewer