Skip to content

Instantly share code, notes, and snippets.

View ggoboogy's full-sized avatar
🐢

Jihyeon Yoon ggoboogy

🐢
  • Microsoft
  • Great Seattle Area
View GitHub Profile
@ggoboogy
ggoboogy / influx-grafana-setup.sh
Last active March 20, 2019 06:01
Setup Influx Database and Grafana on Ubuntu
# 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
@ggoboogy
ggoboogy / solving_docker_permission_denied
Created December 13, 2018 07:26
Try to reconnect after executing the below commands
sudo usermod -a -G docker $USER
sudo service docker restart
@ggoboogy
ggoboogy / create_colored_logging.py
Last active September 18, 2019 01:47
Python Colored Logging with Colorlog
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"
@ggoboogy
ggoboogy / add_modification_to_old_commit.sh
Created January 9, 2020 05:51
add small modification to old commit (will be squashed and commit hash will be CHANGED)
git add <my fixed files>
git commit --fixup=OLDCOMMIT
git rebase --interactive --autosquash OLDCOMMIT^