I hereby claim:
- I am slank on github.
- I am wedgwood (https://keybase.io/wedgwood) on keybase.
- I have a public key whose fingerprint is B02A 291E 4811 5FEE FECF 2A67 DE8F 06EA 1781 176C
To claim this, I am signing this object:
"""sendmail email backend class for postfix.""" | |
import threading | |
from django.conf import settings | |
from django.core.mail.backends.base import BaseEmailBackend | |
from subprocess import Popen,PIPE | |
class EmailBackend(BaseEmailBackend): | |
def __init__(self, fail_silently=False, **kwargs): |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.openssh.port-forwards</string> | |
<key>OnDemand</key> | |
<true/> | |
<key>ProgramArguments</key> | |
<array> |
# Variables | |
FOO=here | |
FOO="here" # equivalent, always use quotes | |
BAR=$FOO | |
BAR="$FOO" | |
BAR="${FOO}" | |
BAR='$FOO' # single quotes, does not evaluate the variable |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import logging | |
import os | |
# DEFAULT_FMT = "(%(filename)s:%(lineno)d) %(message)s" | |
DEFAULT_FMT = "%(message)s" | |
class ColorMultilineLogFormatter(logging.Formatter): | |
grey = "\x1b[37m" | |
bold_grey = "\x1b[37;1m" | |
blue = "\x1b[34;1m" |