To log checks from sensu into logstash, I use the following sensu config:
{
"handlers": {
"logstash": {
"type": "tcp",
"socket": {
"host": "logstash.example.com",
"port": 1234
<!DOCTYPE html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<script> | |
L_NO_TOUCH = false; | |
L_DISABLE_3D = false; | |
</script> | |
<style>html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style> |
import sqlalchemy as sa | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy_utils import create_view | |
Base = declarative_base() | |
class User(Base): | |
__tablename__ = 'user' | |
id = sa.Column(sa.Integer, primary_key=True) | |
name = sa.Column(sa.String) |
127.0.0.1 adclick.g.doubleclick.net | |
127.0.0.1 adeventtracker.spotify.com | |
127.0.0.1 ads-fa.spotify.com | |
127.0.0.1 analytics.spotify.com | |
127.0.0.1 audio2.spotify.com | |
127.0.0.1 b.scorecardresearch.com | |
127.0.0.1 bounceexchange.com | |
127.0.0.1 bs.serving-sys.com | |
127.0.0.1 content.bitsontherun.com | |
127.0.0.1 core.insightexpressai.com |
"""Script to launch the specified command in the next available workspace.""" | |
import i3ipc | |
import sys | |
# Potential workspaces to use | |
WORKSPACES = set((1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) | |
def main(): | |
i3c = i3ipc.Connection() |
import i3ipc | |
i3 = i3ipc.Connection() | |
def on_window_focus(i3, e): | |
cont = e.container | |
if cont.rect.width < cont.rect.height: | |
print("splitv") | |
i3.command("split vertical") | |
else: |
### Keybase proof | |
I hereby claim: | |
* I am mrichar1 on github. | |
* I am match (https://keybase.io/match) on keybase. | |
* I have a public key whose fingerprint is 129D 6F6D A317 AAA8 F492 A7E6 456A 62D5 6602 41D2 | |
To claim this, I am signing this object: |
output { | |
http { | |
url => "http://influxdb.example.com/db/<database>/series?u=<user>&p=<pass>" | |
http_method => "POST" | |
} | |
} |
Reveal.initialize({ | |
keyboard: { | |
// '0' key will jump between current slide and slide-X | |
48: function() {jumpSlide()}, | |
} | |
}); | |
function jumpSlide() { | |
// The id of the slide you wish to jump to/from |
To log checks from sensu into logstash, I use the following sensu config:
{
"handlers": {
"logstash": {
"type": "tcp",
"socket": {
"host": "logstash.example.com",
"port": 1234
######################################################## | |
# install sensu (epel rpms) | |
# you will also need some (all?) of sqlite-devel, mysql2-devel, rpm-build, libxslt-devel,libxml2-devel rpms | |
# use it's embedded gem to install bundler and fpm | |
mkdir /tmp/sensugems | |
/opt/sensu/embedded/bin/gem install --no-rdoc --no-ri -i /tmp/sensugems/ bundler |