Skip to content

Instantly share code, notes, and snippets.

View tnine's full-sized avatar

Todd Nine tnine

  • Denver, CO, United States
View GitHub Profile
@tnine
tnine / CollectUntil.java
Last active August 29, 2015 14:17
Collector that short circuits on a predicate
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@tnine
tnine / agent.log
Created November 4, 2014 21:24
Agent log with incorrect connection settings
* Starting DataStax agent monitor datastax_agent_monitor
INFO [main] 2014-11-04 16:16:13,992 Loading conf files: /var/lib/datastax-agent/conf/address.yaml
INFO [main] 2014-11-04 16:16:14,036 Java vendor/version: Java HotSpot(TM) 64-Bit Server VM/1.7.0_60
INFO [main] 2014-11-04 16:16:14,037 DataStax Agent version: 5.0.1
INFO [main] 2014-11-04 16:16:14,091 Default config values: {:rollups300_ttl 2419200, :settings_cf "settings", :restore_req_update_period 60, :my_channel_prefix "/agent", :poll_period 60, :kerberos_hostname nil, :storage_dc nil, :thrift_conn_timeout 10000, :thrift_max_frame_size 15728640, :rollups60_ttl 604800, :stomp_port 61620, :shorttime_interval 10, :longtime_interval 300, :private-conf-props ["initial_token" "listen_address" "broadcast_address" "rpc_address"], :thrift_port 9160, :async_retry_timeout 5, :agent-conf-group "global-cluster-agent-group", :jmx_host "127.0.0.1", :ec2_metadata_api_host "169.254.169.254", :metrics_enabled 1, :async_queue_size 5000, :disk_usage_update_period 60,
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
/usr/lib/ruby/gems/1.8/gems/excon-0.7.4/lib/excon/response.rb:68:in `<<': failed to allocate memory (NoMemoryError)
ec2-50-18-43-68.us-west-1.compute.amazonaws.com from /usr/lib/ruby/gems/1.8/gems/excon-0.7.4/lib/excon/response.rb:68:in `parse'
ec2-50-18-43-68.us-west-1.compute.amazonaws.com from /usr/lib/ruby/gems/1.8/gems/excon-0.7.4/lib/excon/connection.rb:176:in `request'
ec2-50-18-43-68.us-west-1.compute.amazonaws.com from /usr/lib/ruby/gems/1.8/gems/fog-1.0.0/lib/fog/core/connection.rb:20:in `request'
ec2-50-18-43-68.us-west-1.compute.amazonaws.com from /usr/lib/ruby/gems/1.8/gems/fog-1.0.0/lib/fog/aws/storage.rb:366:in `request'
ec2-50-18-43-68.us-west-1.compute.amazonaws.com from /usr/lib/ruby/gems/1.8/gems/fog-1.0.0/lib/fog/aws/requests/storage/get_object.rb:57:in `get_object'
ec2-50-18-43-68.us-west-1.compute.amazonaws.com from /usr/lib/ruby/gems/1.8/gems/fog-1.0.0/lib/fog/aws/models/storage/files.rb:63:in `get'
ec2-50-18-43-68.us-west-1.compute.amazo
include Opscode::Aws::Ec2
# Auto locates and attached ebs devices based on the data bag they reside in. The following test cases need to be performed. Currently limited to 15 drives for the raid due to the drive mount point seek iteration logic. This could be fixed to include more than 15 mount points.
# Create multiple resources with new node: PASS
#
# Re-attach multiple resources after a reboot: PASS
#
# Create resources across 2 runs. First run creates first raid set, second run re-attaches then creates: PASS
#
@tnine
tnine / removetags.sh
Created July 15, 2011 00:25
Remove all tags from local and remote git. USE WITH CAUTION!
for TAG in $(git tag -l); do git tag -d $TAG && git push origin :refs/tags/$TAG ; done
@tnine
tnine / ebs_raid.rb
Created April 27, 2011 03:03
Ebs raid mounting. Links to this jira issue http://tickets.opscode.com/browse/CHEF-2275
include Opscode::Aws::Ec2
#Auto locates and attached ebs devices based on the data bag they reside in. The following test cases need to be performed
# Create multiple resources with new node: PASS
#
# Re-attach multiple resources after a reboot: PASS
#
# Create resources across 2 runs. First run creates first raid set, second run re-attaches then creates: PASS
#