After watching Bryan Cantrill's presentation on [Running Aground: Debugging Docker in Production][aground] I got all excited (and strangely nostalgic) about the possibility of core-dumping server-side Python apps whenever they go awry. This would theoretically allow me to fully inspect the state of the program at the point it exploded, rather than relying solely on the information of a stack trace.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Copyright (c) 2021 Jasper Lievisse Adriaanse <[email protected]> | |
# | |
# Permission to use, copy, modify, and distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# znc - IRC Bouncer | |
description "ZNC IRC bouncer" | |
author "Calum Lind [email protected]" | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
respawn limit 15 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Authors: Douglas Creager <[email protected]> | |
# Calum Lind <[email protected]> | |
# | |
# This file is placed into the public domain. | |
# | |
# Calculates the current version number by first checking output of “git describe”, | |
# modified to conform to PEP 386 versioning scheme. If “git describe” fails | |
# (likely due to using release tarball rather than git working copy), then fall | |
# back on reading the contents of the RELEASE-VERSION file. |