This file contains hidden or 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
#user nobody; | |
worker_processes 1; | |
error_log logs/error.log; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
This file contains hidden or 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 | |
from boto.utils import get_instance_metadata | |
import boto | |
import argparse, logging | |
def parsed_args(): | |
# parse cmd line args | |
parser = argparse.ArgumentParser(description='Download file from S3') | |
parser.add_argument('--bucket', |
This file contains hidden or 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 argparse, pymssql, logging | |
def parsed_args(): | |
# parse cmd line args | |
parser = argparse.ArgumentParser(description='Create MSSQL database.') | |
parser.add_argument('--user', | |
help='Username to connect to MSSQL', | |
default='qmatic') |
This file contains hidden or 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 | |
from boto.utils import get_instance_metadata | |
import boto.ec2 | |
import argparse, logging, datetime | |
def parsed_args(): | |
# parse cmd line args | |
parser = argparse.ArgumentParser(description='Snapshot the volume mounted at specified mount point in AWS, delete old snapshots.') | |
parser.add_argument('--tag-name', |
This file contains hidden or 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 | |
from boto.utils import get_instance_metadata | |
import boto.ec2 | |
import argparse, logging, time, os | |
def parsed_args(): | |
# parse cmd line args | |
parser = argparse.ArgumentParser(description='Find snapshot by tag, create volume from it and mount.') | |
parser.add_argument('--id', |
This file contains hidden or 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/bash | |
# so 'add-apt-repository' works | |
sudo apt-get -y install python-software-properties | |
# add apt sources | |
sudo add-apt-repository ppa:vbernat/haproxy-1.5 | |
# update apt | |
sudo apt-get update |
This file contains hidden or 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
global | |
daemon | |
nbproc 1 | |
user haproxy | |
group haproxy | |
log 127.0.0.1:514 local0 | |
pidfile /var/run/haproxy.pid | |
stats socket /var/run/haproxy.stat mode 777 | |
spread-checks 5 | |
ssl-default-bind-options no-sslv3 no-tls-tickets force-tlsv12 |
This file contains hidden or 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
package com.qmatic.qp.cometd.client; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.cometd.bayeux.Channel; | |
import org.cometd.bayeux.Message; | |
import org.cometd.bayeux.client.ClientSession; | |
import org.cometd.bayeux.client.ClientSessionChannel; | |
import org.cometd.client.BayeuxClient; | |
import org.cometd.client.transport.ClientTransport; |