Skip to content

Instantly share code, notes, and snippets.

Avatar

Marc Mueller cdce8p

  • Germany
  • 23:23 (UTC +02:00)
View GitHub Profile
@dschep
dschep / raspbian-python3.6.rst
Last active Jul 12, 2022 — forked from BMeu/raspbian-python3.5.rst
Installing Python 3.6 on Raspbian
View raspbian-python3.6.rst

Installing Python 3.6 on Raspbian

As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.

  1. Install the required build-tools (some might already be installed on your system).
@dhrrgn
dhrrgn / debug_stuff.py
Last active Feb 14, 2022
A handy SQL debug function for Flask-SQLAlchemy
View debug_stuff.py
from . import app
from flask.ext.sqlalchemy import get_debug_queries
if app.debug:
app.after_request(sql_debug)
def sql_debug(response):
queries = list(get_debug_queries())
query_str = ''