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
Year: Wins - Losses, # of games at same time | |
2000: 21 - 11, 0 | |
2001: 17 - 15, 0 | |
2002: 19 - 13, 0 | |
2003: 10 - 22, 1 | |
2004: 16 - 16, 0 | |
2005: 15 - 17, 0 | |
2006: 18 - 14, 0 | |
2007: 14 - 18, 1 |
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
from boto import connect_ec2 | |
def get_ri_costs(connection): | |
""" | |
@connection: EC2Connection obj | |
returns: list | |
""" | |
ri_costs = [] | |
ris = connection.get_all_reserved_instances_offerings(include_marketplace=False, |
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
justin@logstashidx03:~$ sudo /opt/logstash/bin/logstash -t -f /etc/logstash/conf.d/logstash.conf | |
Bundler::GemNotFound: Could not find nokogiri-1.6.7-java in any of the sources | |
materialize at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/spec_set.rb:92 | |
map! at org/jruby/RubyArray.java:2446 | |
materialize at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/spec_set.rb:85 | |
specs at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:132 | |
specs_for at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:177 | |
requested_specs at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:166 | |
requested_specs at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/environment.rb:18 | |
setup at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/runtime.rb:13 |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "DenyStopAndTerminateWhenMFAIsFalse", | |
"Effect": "Deny", | |
"Action": [ | |
"ec2:StopInstances", | |
"ec2:TerminateInstances" | |
], |
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
log_format logstash_json '{ "@timestamp": "$time_iso8601", ' | |
'"@version": "1", ' | |
'"remote_addr": "$remote_addr", ' | |
'"body_bytes_sent": "$body_bytes_sent", ' | |
'"request_time": "$request_time", ' | |
'"upstream_addr": "$upstream_addr", ' | |
'"upstream_status": "$upstream_status", ' | |
'"upstream_response_time": "$upstream_response_time", ' | |
'"status": "$status", ' | |
'"uri": "$uri", ' |
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
filter { | |
if [type] == "syslog" { | |
grok { | |
match => { "message" => [ "%{SYSLOGPAMSESSION}", "%{CRONLOG}", "%{SYSLOGLINE}" ] } | |
add_field => [ "received_at", "%{@timestamp}" ] | |
add_field => [ "received_from", "%{host}" ] | |
overwrite => [ "message" ] # After we've processed the log we dont need the raw message anymore | |
} | |
grep { |
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
--- ./node_modules/hubot-scripts/src/scripts/pagerduty.coffee 2013-04-12 18:05:20.000000000 -0400 | |
+++ ./custom_scripts/pagerduty.coffee 2013-05-28 14:29:25.000000000 -0400 | |
@@ -40,8 +40,13 @@ | |
if missingEnvironmentForApi(msg) | |
return | |
- emailNote = if msg.message.user.pagerdutyEmail | |
- "You've told me your PagerDuty email is #{msg.message.user.pagerdutyEmail}" | |
+ users = robot.brain.usersForFuzzyName(msg.message.user.name) | |
+ if users.length is 1 |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Printf("happy birthday snakes\n") | |
} |
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
{ | |
"report_name" : "util", | |
"report_type" : "standard", | |
"title" : "util", | |
"vertical_label" : "Count", | |
"series" : [ | |
{ "metric": "iostat_sdi_util", "color": "660099", "label": "sdi", "type": "line", "line_width": "2" }, | |
{ "metric": "iostat_sdj_util", "color": "99FF00", "label": "sdj", "type": "line", "line_width": "2" }, | |
{ "metric": "iostat_sdk_util", "color": "FF9900", "label": "sdk", "type": "line", "line_width": "2" }, | |
{ "metric": "iostat_sdl_util", "color": "CC3300", "label": "sdl", "type": "line", "line_width": "2" } |
NewerOlder