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 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 }}" |
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 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' |
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
{ | |
"handlers": { | |
"mailer": { | |
"command": null, | |
"type": "extension", | |
"severities": [ | |
"ok", | |
"warning", | |
"critical", | |
"unknown" |
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/env python2 | |
# encoding: utf-8 | |
# | |
# Authors: | |
# Julien Syx <[email protected]> | |
# | |
# Dependencies: | |
# - python boto | |
# | |
# On Debian: aptitude install python-boto |
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/env python | |
import urllib2 | |
import boto | |
import logging | |
import socket | |
logger = logging.getLogger(__name__) | |
handler = logging.FileHandler('/var/log/route53.log') | |
formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s') |
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
server { | |
listen 80; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name lisa; | |
location / { | |
proxy_pass http://lisa:8000/; |
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
# Clone the repo | |
╭─julien@tagada-work ~/Sandbox/ | |
╰─➤ git clone [email protected]:Seraf/LISA.git | |
╭─julien@tagada-work ~/Sandbox/ | |
╰─➤ cd LISA | |
# Go to angularjs branch | |
╭─julien@tagada-work ~/Sandbox/LISA ‹master*› | |
╰─➤ git checkout angularjs |
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
sudo apt-get install mongodb python-setuptools libxslt1-dev libxslt1.1 libxml2-dev build-essential python-dev libssl-dev python-openssl libyaml-dev | |
sudo easy_install pip | |
sudo pip install virtualenv virtualenvwrapper | |
sudo useradd -s /bin/bash -m lisa | |
sudo su - lisa | |
export WORKON_HOME=$HOME/.virtualenvs | |
echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc | |
export PROJECT_HOME=$HOME/ | |
echo "export PROJECT_HOME=$HOME/" >> ~/.bashrc | |
source /usr/local/bin/virtualenvwrapper.sh |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: lisa-server | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start/stop Lisa server | |
### END INIT INFO |
NewerOlder