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
filter { | |
# Capture all the generic syslog stuff and populate @timestamp | |
if [type] == "postfix" { | |
grok { | |
match => [ "message", "%{SYSLOGBASE} %{GREEDYDATA:_syslog_payload}" ] | |
singles => true | |
} | |
# Postfix pads single-digit numbers with spaces (WHYYYYY) | |
mutate { gsub => [ "timestamp", " ", " 0" ] } | |
date { match => [ "timestamp", "MMM dd HH:mm:ss"] } |
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
from thrift.transport import TSSLSocket | |
from thrift.transport import TTransport | |
import cql | |
sock = TSSLSocket.TSSLSocket(host='cass.example.com', port=9160, ca_certs='/path/to/ca_certs.pem') | |
trans = TTransport.TFramedTransport(sock) | |
conn = cql.connect('cass.example.com', 9160, 'keyspace', user='username', password='password', transport=trans, cql_version='3.0.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
:~ | |
:= | |
:_# | |
:, | |
:! | |
:!! | |
:. | |
:@ | |
:@@ | |
:#! |
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
# Loads data from OpenTSDB. | |
# | |
# `server.url`: The URL of the OpenTSDB server (e.g. 'http://tsdb.example.com') | |
# `metrics`: List of strings specifying the metrics to pull (e.g. | |
# c("avg:web.cpu.user{host=*}", "sum:web.requests{type=login}") | |
# ) | |
# `start.dt`: How far to go back in the time series, in any format OpenTSDB | |
# (e.g. "4h-ago") | |
# `end.dt`: Where to end the results (defaults to now) | |
# `datify`: Whether to convert timestamps to POSIXlt objects (defaults to TRUE) |
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
Brieonce | |
Celine Dijon | |
Cheeses & Mary Chain | |
Lil Kimchi | |
Iggy Popsicle | |
Modest Mousse | |
Rigatoni Toni Tone | |
S'Morrissey | |
Jay Ziti | |
Sonny and Pear |
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
$ dig happy.newyear | |
; <<>> DiG 9.8.3-P1 <<>> happy.newyear | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 59466 |
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/python | |
import random | |
import re | |
import sys | |
options = {} | |
class RollSpec: | |
def __init__(self, spec): |
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
#!yaml|gpg | |
myapp: | |
username: app_user | |
password: | | |
-----BEGIN PGP MESSAGE----- | |
... | |
-----END PGP MESSAGE----- |
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
myapp: | |
username: app_user | |
password: hunter2 |
NewerOlder