For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| index index.php index.html; | |
| root /your/path/to/the/sendy; | |
| location = / { | |
| index index.php; | |
| } | |
| location / { | |
| if (!-f $request_filename){ | |
| rewrite ^/([a-zA-Z0-9-]+)$ /$1.php last; |
| # -*- coding: utf-8 -*- | |
| import Image | |
| def resize_and_crop(img_path, modified_path, size, crop_type='top'): | |
| """ | |
| Resize and crop an image to fit the specified size. | |
| args: | |
| img_path: path for the image to resize. |
| #!/usr/local/bin/python | |
| """Replacement for htpasswd""" | |
| # Original author: Eli Carter | |
| import os | |
| import sys | |
| import random | |
| from optparse import OptionParser | |
| # We need a crypt module, but Windows doesn't have one by default. Try to find |
| $ cvs -z3 -d:pserver:[email protected]:/sources/screen co screen | |
| $ curl http://old.evanmeagher.net/files/gnu-screen-vertsplit.patch > gnu-screen-vertsplit.patch | |
| $ cd screen/src | |
| $ patch < ../../gnu-screen-vertsplit.patch | |
| $ ./configure --enable-locale --enable-telnet --enable-colors256 --enable-rxct_osc | |
| $ make | |
| $ sudo make install |
| // ---------------------------------------------------------- | |
| // A short snippet for detecting versions of IE in JavaScript | |
| // without resorting to user-agent sniffing | |
| // ---------------------------------------------------------- | |
| // If you're not in IE (or IE version is less than 5) then: | |
| // ie === undefined | |
| // If you're in IE (>=5) then you can determine which version: | |
| // ie === 7; // IE7 | |
| // Thus, to detect IE: | |
| // if (ie) {} |