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
git add <my fixed files> | |
git commit --fixup=OLDCOMMIT | |
git rebase --interactive --autosquash OLDCOMMIT^ |
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
import logging | |
import colorlog | |
class StreamLogFormatter(logging.Formatter): | |
def __init__(self): | |
self.BASE = ("%(black)s%(bold)s%(asctime)s%(reset)s " | |
"%(log_color)s%(levelname)s%(reset)s") | |
self.DIR_NAME = "%(bold)s%(dir_name)s%(reset)s" | |
self.MSG = "%(log_color)s%(message)s%(reset)s" |
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
sudo usermod -a -G docker $USER | |
sudo service docker restart |
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
# influxDB installation | |
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - | |
source /etc/lsb-release | |
echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list | |
sudo apt-get update && sudo apt-get install influxdb | |
sudo service influxdb start | |
# grafana installation | |
wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_5.4.3_amd64.deb /home/ubuntu/ | |
sudo apt-get install -y adduser libfontconfig |