Skip to content

Instantly share code, notes, and snippets.

worker_processes 2;
events {
worker_connections 4096;
}
http {
include mime.types;
default_type application/octet-stream;
[Builder: fluentd-ui] I | Build fluentd-ui: 52.9431s
The following shell command exited with status 1:
$ BUNDLE_GEMFILE=Gemfile.production /opt/td-agent/embedded/bin/rake build
Output:
(nothing)
Error:
@oranie
oranie / gist:7766962
Created December 3, 2013 10:14
yohoushi error
time:2013-12-03T19:09:04+0900 level:FATAL message:
ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"):
vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:38:in `call_app'
vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:22:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
@oranie
oranie / gist:5812234
Created June 19, 2013 07:14
td-agentの起動時エラー
]# /etc/init.d/td-agent start
Starting td-agent: runuser: warning: cannot change directory to /var/lib/td-agent: そのようなファイルやディレクトリはありません
[ OK ]
@oranie
oranie / gist:5632839
Created May 23, 2013 04:58
ore no dig2
$ dig @8.8.8.8 tophatenar.com
; <<>> DiG 9.7.6-P1 <<>> @8.8.8.8 tophatenar.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48927
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
@oranie
oranie / gist:5632815
Created May 23, 2013 04:51
ore no dig.txt
$ dig tophatenar.com
; <<>> DiG 9.7.6-P1 <<>> tophatenar.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9098
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;tophatenar.com. IN A
@oranie
oranie / gist:5243833
Last active December 15, 2015 10:09
cassandra host sort by bash
#!/bin/bash
TMP_LIST=(`nodetool -h 192.168.0.1 ring| grep 192.168 | awk '{print $1}'`)
TMP_LIST_LAST_NUM=`expr ${#TMP_LIST[*]} - 1`
SORT_LIST=()
SKIP_NUM="5"
SEQ_LAST_NUM=`expr $SKIP_NUM - 1`
for t in `seq 0 $SEQ_LAST_NUM`
foreach my $host(@host_list){
$pm->start and next;
my @all_status = get_jmx_value($host,$jolokia_port,$threshold);
print "$host" . "\n";
foreach my $status(@all_status){
print $status . "\n";
}
$pm->finish(0, { 'host' => $host, 'all_status' => \@all_status});
}
import boto3
import time
# Get the service resource.
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('access_log')
print(table.item_count)
starttime = time.time()
@oranie
oranie / gist:4076463
Created November 15, 2012 03:25
old config
<store>
type datacounter
#unit minute
count_interval 60
count_key response_time
tag apache_result.response_time.all
aggregate all
# patternX: X(1-9)
pattern1 0-100msec ^\d{1,5}$
pattern2 100-200msec ^1\d{5}$