Skip to content

Instantly share code, notes, and snippets.

View rh0dium's full-sized avatar

Steven rh0dium

View GitHub Profile
@rh0dium
rh0dium / settings_logging.py
Last active August 17, 2020 21:16
Color logging inside of PyCharm
# Get and install logutils
# pip install logutils
# === settings.py ===
class PseudoTTY(object):
"""This allows a a fake tty which will allow PyCharm to always say its a tty"""
def __init__(self, underlying):
"""Define my underlying class"""
@rh0dium
rh0dium / .env
Last active May 20, 2018 19:18
Docker .ENV File
# Docker Additions
MYSQL_HOST=db
MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD=password
MYSQL_ROOT_HOST=%
MYSQL_DATABASE=bugs
MYSQL_USER=icmAdmin
MYSQL_PASSWORD=password
@rh0dium
rh0dium / docker-compose.yml
Created May 19, 2018 20:09
An envision with IP Verification Docker.
version: "3.1"
services:
app:
image: icmanage1/envision:envision_verification-latest
links:
- db
- perforce
- rabbitmq
- splunk
@rh0dium
rh0dium / docker-compose.yml
Last active May 18, 2018 22:55
A typical envision stack
version: "3.1"
services:
app:
image: icmanage1/envision:envision-latest
links:
- db
- perforce
- rabbitmq
- splunk
@rh0dium
rh0dium / docker-compose.yml
Created May 16, 2018 16:43
IP Central Docker
version: "3.1"
services:
app:
image: icmanage1/envision:ipcentral-latest
links:
- db
- perforce
env_file:
- .env
@rh0dium
rh0dium / docker-compose.yml
Last active May 16, 2018 16:19
Basic Perforce / MariaDb IC Manage Server
version: "3.1"
services:
perforce:
image: icmanage1/envision:perforce-latest
networks:
main:
ipv4_address: 172.19.0.16
env_file:
- .env
{% extends "base.html" %}
{% comment %}
Author: Steven Klass <steven.klass@7stalks.com>
Copyright 2011-2013 Pivotal Energy Solutions. All rights reserved.
See the file LICENSE.txt for licensing information.
{% endcomment %}
{% block page_title %}Impersonate User List{% endblock %}
@rh0dium
rh0dium / base.py
Created February 10, 2013 23:19
Another..
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'standard': {
'format': "[%(asctime)s] %(levelname)s [%(name)s.%(funcName)s:%(lineno)d] %(message)s",
'datefmt': "%d/%b/%Y %H:%M:%S"
},
},
'handlers': {
class ColorizingStreamHandler(logging.StreamHandler):
"""
A stream handler which supports colorizing of console streams
under Windows, Linux and Mac OS X.
:param strm: The stream to colorize - typically ``sys.stdout``
or ``sys.stderr``.
"""
# color names to indices