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/bash | |
# Get list of all dbs on remote server, dump each to its own dir on this server | |
export PGPASSWORD="secret" | |
HOST='example.com' | |
DBUSER='someuser' | |
BASEDIR='/var/backups/postgres/' | |
temp1='/tmp/dbdata_tmp1.txt' | |
temp2='/tmp/dbdata_tmp2.txt' |
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
from django.template.loader import BaseLoader | |
from django.template.loader import find_template_loader | |
from django.template.loader import make_origin | |
from django.template.base import TemplateDoesNotExist | |
from django.template.base import Template | |
''' | |
Deubug template loader visually shows which templates are being invoked in the | |
process of rendering an entire page. To use, wrap your your existing loaders |
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
54a55,58 | |
> --enable-mail=<y|n> | |
> -e <y|n> | |
> Enable user mail deilvery options. | |
79a84 | |
> from Mailman import MemberAdaptor | |
127c132 | |
< def addall(mlist, members, digest, ack, outfp): | |
--- | |
> def addall(mlist, members, digest, ack, outfp, enable): |
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/python | |
''' | |
Python-based gift exchange randomizer. | |
Step through a list of people and, for each member of that list, | |
select someone else to be a recipient of their gift. That recipient: | |
A) Must not be themselves (no self-gifting) | |
B) Must not already have been assigned as a recipient | |
NewerOlder