git pre-commit Hooks for Python
As part of an effort to move to a fully automated CI/CD process, I wanted to begin using
git
pre-commit hooks for my python code. These are my notes on setting that up.
This isn't a blog and the content here is not blog posts. Rather, these are random notes I've taken that I've chosen to make public for ease of reference. If you stumble across them and find them helpful, that's great, however, compelling reading and thoughtful prose are not to be found here.
As part of an effort to move to a fully automated CI/CD process, I wanted to begin using
git
pre-commit hooks for my python code. These are my notes on setting that up.
After seeing lots of positive feedback on HN about the Bitwarden password manager, I finally decided to try it out. Because I had over 1,000 accounts in LastPass, many of which were crufty, I wanted to declare "account/password" amnesty while still keeping all the old account information "just in case." Here is how I migrated my LastPass database to Bitwarden.
The few times I've built Django's documentation from scratch, I always seem to get LaTeX unicode errors.
Unrelatedly, I've found that when I print Django's documentation on a B&W printer, some of the documentation, particularly code, is difficult, if not impossible, to read.
This note describes a brute-force approach to eliminate the unicode errors, as well as a rather churlish way to force Django to produce black and white PDF documentation.
For many years I have managed my local Python installs using a combination of macports,
virtualenvs, and pip. I've fought many issues along the way and have finally reached the
tipping point. As the TV commercials say, "There has to be a better way!" Whether it
is a better way or not remains to be seen, however, I am cutting over to using
pyenv
for local python installs. These are my notes
on using pyenv
.
I first started having problems with macOS readline
and macports Python a year or two
ago. Initially, it was bugs in resetting the tty to a sane configuration when a Python
REPL exited. That seems to have been solved, but I'm now encountering readline
problems with Python 3.7, GNU Emacs 26.1, and elpy
. These notes describe what seems
to be a solution, at least for the time being.
Note on installing and configuring elpy
in GNU Emacs 26.1 with Python 3.7 on
MacOS Sierra (10.12).
This is a simple way to configure a macOS system for web development. It allows one to develop multiple sites locally, without reconfiguring anything when changing sites/customers.
There are two key components to the strategy: dnsmasq and the httpd daemon's configuration.
These are my notes on installing acme.sh and using it on an aging Django site. They were originally written sometime in 2016 and updated in May of 2018.
The LCD display on my 27" iMac (mid-2011) went dead/black. It's a common problem. These are my notes on a software-only fix.