Skip to content

Instantly share code, notes, and snippets.

View jhazelwo's full-sized avatar

John Hazelwood jhazelwo

View GitHub Profile
@jhazelwo
jhazelwo / fail.py
Last active December 2, 2024 13:29
Supress traceback for custom Python exceptions
#!/usr/bin/env python3
""" -*- coding: utf-8 -*-
Example Python3 Raise Exception without Traceback
Example Python3 Hide Traceback
Python3 Custom Exception Class
Python3 custom exception suppress traceback example
Python3 custom exception without traceback example
Example Python Raise Exception without Traceback
Example Python Hide Traceback
Python Custom Exception Class
@jhazelwo
jhazelwo / docker-on-efs.txt
Created December 16, 2016 13:14
Docker SystemD AWS EFS
install -d -m 0700 -o 0 -g 0 /etc/systemd/system/docker.service.d
echo '[Service]' > /etc/systemd/system/docker.service.d/efs.conf
echo 'ExecStart=' >> /etc/systemd/system/docker.service.d/efs.conf
echo "ExecStart=/usr/bin/dockerd -H fd:// -s devicemapper -g /data/$(hostname)/docker" >> /etc/systemd/system/docker.service.d/efs.conf