Skip to content

Instantly share code, notes, and snippets.

@LordotU
LordotU / docker-compose.yml
Created January 15, 2020 14:17
Metrics: Grafana + Prometheus + Node Exporter + cAdvisor
version: "3"
services:
cadvisor:
container_name: cadvisor
image: google/cadvisor
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
@LordotU
LordotU / acme.json
Created December 20, 2019 22:14
Traefik 1.7.* as Reverse Proxy And Let's Encrypt
# This file should be empty and its permission should be 600
@LordotU
LordotU / docker-compose.yml
Last active December 19, 2019 09:03
Docker Nginx Reverse Proxy And Let's Encrypt
# Run it via command: docker-compose up -d
version: '3'
services:
nginx:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
@LordotU
LordotU / parser.py
Last active November 25, 2019 21:28
TUI Flights Parser
def get_message(row, soup):
"""
Returns the Markdown formatted message
Args:
row (OrderedDict): A dictionary representation of urls.csv file row.
soup (BeautifulSoup): A Beautiful Soup web page representation.
Returns:
message (str): Markdown formatted message
"""
price_node = soup.find('span', class_='current-price')