This gist is deprecated; some of the keys may still be used, but the fingerprints are no longer mirrored to two or more locations for verification.
9761 51DE E472 01CE 4A85 9F70 5408 3AE1 04EA 7AD3
#!/usr/bin/env python | |
import sys | |
import os | |
from rawphoto.cr2 import Cr2 | |
from rawphoto.nef import Nef | |
def print_entries(raw, ifd, level=1): | |
for name in ifd.entries: |
### ======= | |
### LOGGING | |
## | |
## loglevel: Verbosity of log files generated by ejabberd. | |
## 0: No ejabberd log at all (not recommended) | |
## 1: Critical | |
## 2: Error | |
## 3: Warning | |
## 4: Info |
source env/bin/activate; python -m photoshell | |
Traceback (most recent call last): | |
File "<frozen importlib._bootstrap>", line 2158, in _find_spec | |
AttributeError: 'DynamicImporter' object has no attribute 'find_spec' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/usr/lib64/python3.4/runpy.py", line 170, in _run_module_as_main | |
"__main__", mod_spec) |
#!/bin/bash | |
CIPHERS=`grep ^s2s_ciphers /etc/ejabberd/ejabberd.yml | cut -d\" -f2 | sed 's,:,\n,g'` | |
for CIPHER in $CIPHERS; do | |
echo "Testing: ${CIPHER}..." | |
openssl s_client -connect samwhited.com:5269 -starttls xmpp -cipher ${CIPHER} || echo "Fail" | |
done |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.preference.DialogPreference; | |
import android.preference.Preference; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.TimePicker; | |
import java.text.DateFormat; | |
import java.util.Calendar; |
#!/bin/sh | |
# | |
# Requires: ImageMagick | |
# Usage: | |
# rendermontage.sh thumbsize overlayimage outputimage | |
# | |
montage -geometry $1x$1>+0+0 *.{jpeg,jpg,png} $3 | |
composite -gravity center -background none $2 $3 $3 |
\documentclass{letter} | |
\signature{Sam Whited} | |
\address{Atlanta, GA} | |
\begin{document} | |
\begin{letter}{Lincoln Town Office \\ PO Box 25 \\ Lincoln, NH 03251} | |
\opening{To whom it may concern:} |
This is a simple server example that accepts geojson features as POST requests (fair warning, it does no validation to make sure anything is geojson conformant) and spits out a geojson file with all the features wrapped in a feature array.
This is just an example. It does lots of bad things (like reading / writing the entire file every time it gets a post request) and is easily abused. The authentication isn't exactly secure either. By default it listens on :2230
.