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
# Inspired and adopted from https://gist.github.com/sekondus/4322469 | |
# COMES WITH ABOSLUTELY NO WARRANTY OF ANY KIND. | |
# TOTAL FREEWARE, NO CLAIMS MADE OF ANY SORT. | |
# SELL IT, BURN IT, PRETEND ITS YOUR OWN. | |
# RELEASED UNDER NOBODY CARES LICENSE. | |
import os | |
import base64 | |
from Crypto.Cipher import AES |
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 | |
"""pretty.py will color text for Xterm/VT100 type terminals using ANSI Escape Sequences | |
A library that provides a Python print, stdout, and string wrapper that makes colored terminal | |
text easier to use(e.g. without having to mess around with ANSI escape sequences). | |
Referance Materials: | |
Colored text in Python using ANSI Escape Sequences | |
http://nezzen.net/2008/06/23/colored-text-in-python-using-ansi-escape-sequences/ |
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 bash | |
# | |
# Get the value of a tag for a running EC2 instance. | |
# | |
# This can be useful within bootstrapping scripts ("user-data"). | |
# | |
# Note the EC3 instance needs to have an IAM role that lets it read tags. The policy | |
# JSON for this looks like: | |
# | |
# { |
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 | |
# -*- coding: utf-8 -*- | |
class Color(object): | |
""" | |
reference from https://gist.github.com/Jossef/0ee20314577925b4027f and modified bit. | |
""" | |
def __init__(self, text, **user_styles): |
NewerOlder