How to detect changes on a webpage using python

The test page

First off, we need a page to test on. I personally just used a small simple flask app with flask_simplelogin as a page.

from flask import Flask
from flask_simplelogin import SimpleLogin, login_required
from datetime import datetime as dt

app = Flask(__name__)
app.config['SECRET_KE...
Continue reading...

Simple NGINX setup for multiple services

Main page

This assumes that you are using certbot and have a wildcard certificate.

You'll want to store the main nginx file in /etc/nginx/conf.d/main.conf

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /var/www/html;
    server_name  *.yadamiel.com yadamiel...
Continue reading...

Embed and authenticate Grafana in a iframe

Grafana

Grafana needs to be configured to allow header based auth from the auth proxy

Grafana config:

[auth.proxy]
enabled = true
# HTTP Header name that will contain the username or email
header_name = X-WEBAUTH-USER
# HTTP Header property, defaults to `username` but can also be `email`
heade...
Continue reading...

Fixing common pip and python package issues

This article is WIP

im not done writing or improving this. Expect typos, weird grammar and general badness.

Introduction

Im going to outline a few common issues with pip, python versions and python packages. Im not going to recommend any specific tool, but rather show a good way of managing th...

Continue reading...