I hereby claim:
- I am bayendor on github.
- I am dbayendor (https://keybase.io/dbayendor) on keybase.
- I have a public key ASB1V69Is1m_YenJTKqCUfMSmusHP5quka8emz0F5BjJNQo
To claim this, I am signing this object:
[inodes_alert:log11] 2017/02/28 20:39:40 I! {"Name":"disk","Database":"","RetentionPolicy":"","Group":"host=aws-nv-u-csadb02,path=/net/zfs1/export/analyticsbinning","Dimensions":{"ByName":false,"TagNames":["host","path"]},"Tags":{"host":"aws-nv-u-csadb02","path":"/net/zfs1/export/analyticsbinning"},"Fields":{"inodes_used_percent":0},"Time":"2017-02-28T20:39:40Z"} | |
[inodes_alert:log11] 2017/02/28 20:39:40 I! {"Name":"disk","Database":"","RetentionPolicy":"","Group":"host=aws-nv-u-csadb02,path=/net/zfs1/export/analyticsdigital","Dimensions":{"ByName":false,"TagNames":["host","path"]},"Tags":{"host":"aws-nv-u-csadb02","path":"/net/zfs1/export/analyticsdigital"},"Fields":{"inodes_used_percent":0},"Time":"2017-02-28T20:39:40Z"} | |
[inodes_alert:log11] 2017/02/28 20:39:40 I! {"Name":"disk","Database":"","RetentionPolicy":"","Group":"host=aws-nv-u-csadb02,path=/net/zfs1/export/analyticsprojects","Dimensions":{"ByName":false,"TagNames":["host","path"]},"Tags":{"host":"aws-nv-u-csadb02","path":"/net/zfs1/export/analyti |
// inodes_alert example | |
// DEFINE: kapacitor define inodes_alert -type stream -tick inodes_alert.tick -dbrp telegraf.ninety_days | |
// ENABLE: kapacitor enable inodes_alert | |
// Parameters | |
var period = 5m | |
var every = 30s | |
var warn = 90 | |
var crit = 95 |
I hereby claim:
To claim this, I am signing this object:
" Set up puppet manifest and spec options | |
au BufRead,BufNewfile *.pp | |
\ set filetype=puppet | |
au BufRead,BufNewfile *_spec.rb | |
\ nmap <F8 :!rspec --color %<CR> | |
" Enable indentation matching for =>'s | |
filetype plugin indent on | |
" turn off auto adding comments on next line |
class Forum < ActiveRecord::Base | |
has_many :posts, :inverse_of => :forum | |
end | |
class Post < ActiveRecord::Base | |
belongs_to :forum, :inverse_of => :posts | |
end |
f.collection_select :some_id_in, Model.all, :id, :name, {}, {:multiple => true} | |
# I have to do the following to get the select field I want: | |
search_form_for @search do |f| | |
f.collection_select :level_in, Log.levels, :to_s, :to_s, {}, { size: Log.levels.length, multiple: true } | |
# model CLINIC has many TREATMENTS | |
<%= check_box_tag "q[treatments_id_eq_ALL][]", treatment.id, {} %> | |
= f.input :category_name_eq, :collection=>Estate::Category.all.map(&:name), :as=>:check_boxes |
# controller | |
def proc_csv | |
import = Import.find(params[:id]) | |
if import.load_csv | |
flash[:notice] = "woo" | |
redirect_to some_url | |
else | |
flash[:error] = "ohoh" | |
end | |
end |
<p>SQL: <%= @users.to_sql %></p> | |
<h2>Your first #{search_limit} results</h2> | |
<table> | |
<thead> | |
<th><%= sort_link @search, :id, {}, :method => action_name == 'advanced_search' ? :post : :get %></th> | |
<th><%= sort_link @search, :first_name, {}, :method => action_name == 'advanced_search' ? :post : :get %></th> | |
# ... | |
</thead> |
/data/docker/containers/*/*-json.log { | |
daily | |
rotate 7 | |
size 100M | |
compress | |
delaycompress | |
missingok | |
} |