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
config 'wifi-device' 'radio0' | |
option 'type' 'mac80211' | |
option 'macaddr' 'f8:d1:11:24:97:14' | |
list 'ht_capab' 'HT40-' | |
list 'ht_capab' 'SHORT-GI-40' | |
list 'ht_capab' 'DSSS_CCK-40' | |
option 'country' 'IE' | |
option 'channel' '9' | |
option 'hwmode' '11ng' | |
option 'htmode' 'HT40-' |
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 | |
# ~/.osx — http://mths.be/osx | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'grok-pure' | |
grok = Grok.new | |
Dir["/vol/logstash/patterns/patterns"].each { |p| grok.add_patterns_from_file(p) } | |
text = 'Oct 26 06:49:36 logstash puppet-agent[4443]: Finished catalog run in 7.02 seconds' |
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
#!/usr/bin/env python | |
import sys | |
import boto | |
import pprint | |
del_flag = '' | |
if len(sys.argv) > 1: | |
del_flag = sys.argv[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
Started POST "/hosts/compute_resource_selected" for 193.120.41.142 at Mon Jan 14 12:24:00 +0000 2013 | |
Processing by HostsController#compute_resource_selected as | |
Parameters: {"compute_resource_id"=>"3", "operatingsystem_id"=>"", "architecture_id"=>""} | |
Rendered compute_resources_vms/form/_ec2.html.erb (5570.8ms) | |
Rendered hosts/_compute.html.erb (5574.2ms) | |
Operation FAILED: undefined method `<=>' for nil:NilClass | |
Rendered common/500.rhtml (3.2ms) | |
Completed 500 Internal Server Error in 5587ms (Views: 3.9ms | ActiveRecord: 0.4ms) |
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
grep { | |
match => [ "some_variable", ".*" ] | |
drop => false | |
negate => true | |
add_field => [ "some_variable", "0" ] | |
} |
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
2013-01-21 11:51:27,021 ERROR: org.graylog2.buffers.processors.ProcessBufferProcessor - Could not apply filter [CounterUpdater] on message <6fb66b47-a43d-443b-a7c4-48e749aaeda7>: | |
java.lang.NullPointerException | |
at org.graylog2.MessageCounterImpl.countUpStream(MessageCounterImpl.java:141) | |
at org.graylog2.MessageCounterImpl.incrementStream(MessageCounterImpl.java:129) | |
at org.graylog2.filters.CounterUpdateFilter.filter(CounterUpdateFilter.java:56) | |
at org.graylog2.buffers.processors.ProcessBufferProcessor.onEvent(ProcessBufferProcessor.java:82) | |
at org.graylog2.buffers.processors.ProcessBufferProcessor.onEvent(ProcessBufferProcessor.java:41) | |
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:113) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) |