Skip to content

Instantly share code, notes, and snippets.

View felipe3dfx's full-sized avatar
🎯
Focusing

Felipe Gonzalez felipe3dfx

🎯
Focusing
View GitHub Profile
@camilonova
camilonova / gist:d2a82989327b2353485aeb32aaf77f6c
Last active September 27, 2018 21:48
setup metric beat for kibana
sudo apt-get install metricbeat -y
# Add you domain
sudo vim /etc/metricbeat/metricbeat.yml
sudo systemctl enable metricbeat
sudo systemctl start metricbeat
@ipmb
ipmb / settings.py
Last active November 11, 2024 07:14
Django logging example
import logging.config
import os
from django.utils.log import DEFAULT_LOGGING
# Disable Django's logging setup
LOGGING_CONFIG = None
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper()
logging.config.dictConfig({
@camilonova
camilonova / README.md
Last active May 25, 2017 20:26
Setup lets encrypt

Get lets encrypt certificate

Install:

$ sudo apt-get update
$ sudo apt-get install -y git
$ sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
$ cd /opt/letsencrypt
$ sudo ./letsencrypt-auto
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm