View gist:4ac2681aaa48fe35fe07
This file contains 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
clstokes-ml:~ clstokes$ akamaiheaders http://www.zappos.com/ | |
HTTP/1.1 200 OK | |
Cache-Control: max-age=508 | |
Connection: keep-alive | |
Content-Encoding: gzip | |
Content-Length: 22636 | |
Content-Type: text/html; charset=utf-8 | |
Date: Sun, 03 Aug 2014 17:39:15 GMT | |
Server: nginx | |
Vary: Accept-Encoding |
View boundary-import-rss.sh
This file contains 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
#!/bin/bash | |
# | |
# Reads a CSV file in the form <name>,<rss> and adds the RSS feed | |
# as a new datasource if it doesn't already exist in Boundary and then | |
# enables the ingestor for the feed. | |
# | |
# Requires http://stedolan.github.io/jq/ in your path. | |
# | |
# Example usage: | |
# ./import-rss.sh -o BOUNDARY_ORG_ID -k BOUNDARY_KEY -f CSV_FILENAME |
View gist:be8e5b0d4ab40ccd08a7
This file contains 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
ERROR [2014-09-02 21:02:28,671] com.yammer.dropwizard.jersey.LoggingExceptionMapper: Error handling a request: f5640bf918940ca9 | |
! java.lang.VerifyError: class org.dasein.cloud.aws.compute.EC2Instance overrides final method listProducts.(Lorg/dasein/cloud/compute/Architecture;)Ljava/lan | |
g/Iterable; | |
! at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.7.0_65] | |
! at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[na:1.7.0_65] | |
! at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.7.0_65] | |
! at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) ~[na:1.7.0_65] | |
! at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[na:1.7.0_65] | |
! at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[na:1.7.0_65] | |
! at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[na:1.7.0_65] |
View gist:48e36230d5f993347caf
This file contains 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
Every 2.0s: nodetool status Thu Sep 4 23:56:40 2014 | |
Datacenter: us-west-2 | |
===================== | |
Status=Up/Down | |
|/ State=Normal/Leaving/Joining/Moving | |
-- Address Load Tokens Owns (effective) Host ID Rack | |
UN 54.186.126.123 50.9 KB 256 50.8% 070af76c-a8db-49cd-a2f4-977e35ad68d2 2a | |
UN 54.191.165.145 60.89 KB 256 50.6% 9e334ffb-2a02-41e4-b9a2-32e4ca84abe0 2a | |
Datacenter: us-east |
View gist:584c0375957799d08422
This file contains 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
clstokes-ml:grid-api clstokes$ ping google.com | |
PING google.com (74.125.225.197): 56 data bytes | |
64 bytes from 74.125.225.197: icmp_seq=0 ttl=54 time=92.114 ms | |
Request timeout for icmp_seq 1 | |
64 bytes from 74.125.225.197: icmp_seq=1 ttl=54 time=1091.632 ms | |
Request timeout for icmp_seq 3 | |
Request timeout for icmp_seq 4 | |
Request timeout for icmp_seq 5 | |
Request timeout for icmp_seq 6 | |
64 bytes from 74.125.225.197: icmp_seq=2 ttl=54 time=5663.153 ms |
View gist:3ef05d086df3e2f039d5
This file contains 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
class ec2-metadata-fail () { | |
if $ec2_instance_id == undef { | |
fail('EC2 metadata service is unavailable (ec2_instance_id is undef), failing puppet run.') | |
} | |
} |
View Not working
This file contains 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
mac-c02nx126g5rp:consul-poc clstokes$ cat consul-template/ingest.ctmpl | |
{{range $key, $pairs := tree "databases" | byKey}} | |
{{ $key }}:{{with $url := printf "databases/%s/url" $key }} | |
url: {{ key $url }} | |
#urlPath: {{ $url }} <- for troubleshooting purposes | |
{{end}}{{end}} | |
mac-c02nx126g5rp:consul-poc clstokes$ ~/cc/other/consul-template/bin/consul-template -consul 127.0.0.1:8500 -template "consul-template/ingest.ctmpl:build/out" -dry -once -log-level debug | |
2015/03/09 10:11:26 [INFO] (runner) creating new runner (dry: true, once: true) | |
2015/03/09 10:11:26 [INFO] (runner) creating consul/api client | |
2015/03/09 10:11:26 [DEBUG] (runner) setting address to 127.0.0.1:8500 |
View gist:5a107c30f88eac4057de
This file contains 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
variable "subnet_cidr_blocks" { | |
default = "192.168.0.0/24,192.168.1.0/24,192.168.2.0/24" | |
} |
View output
This file contains 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
provider "aws" { | |
access_key = "ASDF" | |
secret_key = "ASDF" | |
region = "us-east-1" | |
} | |
resource "aws_security_group" "no_modifications_single_ingress" { | |
name = "no_modifications_single_ingress" | |
description = "this security group causes NO modifications each run" |
View slideshow-javascript.html
This file contains 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> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> |
OlderNewer