Skip to content

Instantly share code, notes, and snippets.

View Seraf's full-sized avatar

Julien Syx Seraf

View GitHub Profile
@Seraf
Seraf / remove_ec2_from_route53.py
Last active August 29, 2015 14:15
This script remove an ec2 instance from route53 providing an instance pattern if this instance does not exist in sensu (so this instance still no longer exist)
#!/usr/bin/env python2
# encoding: utf-8
#
# Authors:
# Julien Syx <julien@syx.fr>
#
# Dependencies:
# - python boto
#
# On Debian: aptitude install python-boto
@Seraf
Seraf / etc_sensu_conf.d_extensions_mailer-ses.json
Last active January 9, 2017 16:50
mailer-ses.rb extension for sensu to avoid fork bomb
{
"handlers": {
"mailer": {
"command": null,
"type": "extension",
"severities": [
"ok",
"warning",
"critical",
"unknown"
from lisa_api.lisa.logger import logger
import requests
import json
class WitNLP(object):
def __init__(self):
self.token_wit = 'XXXXXXXXXXXXXXX'
self.nlp_json = None
self.lisa_api_url = 'http://127.0.0.1:8000'
#!/usr/bin/python
import json
import os
from flask import Flask
from ConfigParser import ConfigParser
app = Flask(__name__)
LOGICAL_DIR = "{{ vault_backend_path}}/logical/"
VAULT_URL = "https://{{ vault_default_cert_url }}:{{ vault_default_port }}"