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
*deny parameters do not work!! #epicfail | |
admin uri will occasionally pass the admin uri itself to a backend randomly instead of displaying #fail |
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
-FastInfoset.jar | |
-XmlSchema.jar | |
acl-spi-3.0.0.CR2.jar | |
activation-1.1.jar | |
-activation.jar | |
ant-1.7.1.jar | |
ant-launcher-1.7.1.jar | |
-antlr.jar | |
-apache-mime4j-0.6.jar | |
-asm.jar |
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
# ping with UTC time | |
pint(){ | |
local TIMEOUTOPT='W' | |
case "`uname -s`" in | |
Darwin) TIMEOUTOPT='t' ;; # -t (seconds) timeout for mac/bsd | |
Linux) TIMEOUTOPT='W' ;; # -W (seconds) timeout for linux | |
*) echo "pint() Unsupported system" ; return 1 ;; | |
esac |
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
# models.py | |
from django.db import models | |
from django.contrib.sites.models import Site | |
class DomainField(models.TextField): | |
def valdiate(self, value): | |
" DNS domain names are always blah.something." | |
super(DomainField, self).validate(value) | |
if len(value.split('.')) < 2: |
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
""" | |
(c) 2011 Barry Allard <[email protected]> | |
MIT License | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
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
import subprocess | |
def better_call(args, check=False): | |
try: | |
if check: | |
return subprocess.check_call(args) | |
else: | |
return subprocess.call(args) | |
except: | |
# Fix: Ctrl-C while reading a password (stty -echo) doesn't restore stty echo. |
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 python | |
""" | |
This creates the django postgres user and database, should be refactored as a manage.py plugin. | |
(c) 2011 Barry Allard <[email protected]> | |
MIT License | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
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
#!/bin/sh | |
if [ `id -u` != 0 ]; then | |
echo "Rerun as root" | |
exit 1 | |
fi | |
apt-get install -y --no-install-recommends python-software-properties patch | |
add-apt-repository ppa:nginx/stable | |
apt-get update |
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
#!/bin/sh | |
if [ `id -u` -ne 0 ]; then | |
echo "Rerun $0 as root" | |
exit 1 | |
fi | |
# Install pip | |
apt-get install -y --no-install-recommends python-setuptools python-dev || exit 1 | |
easy_install -U pip || exit 1 |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC0GKEFfEDG8FSZiJv6Z7zmnA48xcfdRCRro3yL7P9QR/AjVnjriBeIoSns3aigOyATZ1QNVtCeEP7A5diYiIK | |
ZuNaXzzjO9GXDUcspzY9sXW0w2ELy1PF+cYTLth6ZVFZa8znw8GK4LzW6t/UuiG+k3R+QbWwYQ3Frmb5o6iAmGF4POaB1Rc3GxeTAaL5VdBRPufbT4lA01YzgwN | |
4W9BTBowOO6mKLhtMWwx5pzBdIN4aY5fmyhhrdUcApfhOfZPUzo2Oo/IQ7qpyzfZLFW0ICcfPXkUeiD++is5BIzf4x11fv4Rqd04mSLSKZJJKqPqDmA/6uKPt32 | |
8Q47g0+tmf7H36f16xy+DFEOBPrhXbBW+uovzdOv4SLtiUp8QfoK0FDFmcCAyFisGWV37Rzgo2qOD45AaWGYbzoGyZcUMF73a53bmb/d4x4ch4VbO1KUQzXPVsb | |
zUvF1KnRM9bw4l7yfW5qh550OJH6EUKgCMm2l6XO6LD5RpV+xF6pSGGjBEC39z4CafamTgU+sJGPtW2UHLOU0Ar8fURzXoZADnusaxtA23TaLDYu4+au5Ie50dp | |
j8Q7zhEsjdIDotiYKJeZb1L802160M3/U+PPpCmpFLpb0Gwr1Brjh4A8vXhU4GLYDPj/pGQytndZEP+xPvbNq7RGIgKTb6IcnRbAjawP9gQ== barry@barryal | |
lard.name |