RSS.Social

Adam Johnson

follow: @[email protected]

Posts

Git: check if a commit exists on a given branch

Python: fix SyntaxWarning: 'return' in a 'finally' block

Python: capture stdout and stderr in unittest

Git: count files in a repository

Django: write a custom URL path converter to match given strings

Python: check a package version with importlib.metadata.version()

Django: split ModelAdmin.get_queryset() by view

Django: iterate through all registered URL patterns

Git: find the largest commits

Python: fix BrokenPipeError when piping output to other commands

Git: share a full repository as a file with git fast-export