I hereby claim:
- I am badgerops on github.
- I am badgerops (https://keybase.io/badgerops) on keybase.
- I have a public key ASBkrnjAhzwQ6hNWOkeNf6ygbZQbJSlfF3D2IKhneYg6Ego
To claim this, I am signing this object:
#the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
postmap_relayhosts: | |
cmd.run: | |
- name: postmap /etc/postfix/relayhost_maps | |
- onchanges: | |
- file: /etc/postfix/relayhost_maps |
I hereby claim:
To claim this, I am signing this object:
input { | |
gelf { | |
strip_leading_underscore => true | |
remap => true | |
} | |
} | |
filter { | |
if [level] == 7 { | |
mutate { add_field => { "severity" => 'Debug' } } | |
} |
input { | |
gelf { | |
} | |
} | |
filter { | |
translate { | |
field => '%{level}' | |
dictionary => [ 7, 'Debug', | |
6, 'Info', |
filter { | |
translate { | |
dictionary => [ 7, "Debug", | |
6, "Info", | |
4, "Warn", | |
3, "Error", | |
2, "Critical" ] | |
field => level | |
} | |
} |
input { | |
gelf { | |
'gelf stuff here' | |
} | |
} | |
output { | |
elasticsearch { | |
host => old_elasticsearch_cluster | |
index => graylog2_index |
Copyright 2011 Mike Tigas. All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are | |
permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of | |
conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, this list | |
of conditions and the following disclaimer in the documentation and/or other materials |
# idiomatic_python.py | |
some_list = ['fee', 'phi', 'fo', 'fhum'] | |
# do something for every item in iterable | |
for item in some_list: | |
print(item) | |
# need to reverse iterate? | |
for item in reversed(some_list): | |
print(item) |