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/bash | |
#get highest tag number | |
VERSION=`git describe --abbrev=0 --tags` | |
#replace . with space so can split into an array | |
VERSION_BITS=(${VERSION//./ }) | |
#get number parts and increase last one by 1 | |
VNUM1=${VERSION_BITS[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
# -*- coding: utf-8 -*- | |
import logging | |
import os | |
import datetime | |
import time | |
class SingletonType(type): | |
_instances = {} |
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
# -*- coding: utf-8 -*- | |
from sqlalchemy import create_engine, func | |
from sqlalchemy import Table, Column, Integer, String, DateTime, MetaData, ForeignKey | |
from sqlalchemy.pool import NullPool | |
from sqlalchemy.orm import mapper, sessionmaker, relationship | |
params = {'user': 'admin', | |
'password': 'password', | |
'host': 'localhost', |
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
$app->configureMonologUsing(function($monolog) { | |
$transport = new \Gelf\Transport\UdpTransport("127.0.0.1", 12201, \Gelf\Transport\UdpTransport::CHUNK_SIZE_LAN); | |
$publisher = new \Gelf\Publisher(); | |
$publisher->addTransport($transport); | |
$monolog->pushHandler(new \Monolog\Handler\GelfHandler($publisher)); | |
}); |