This file contains 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
@Override | |
public void run(TestDropwizardConfiguration configuration, Environment environment) | |
throws Exception | |
{ | |
env.lifecycle().addLifeCycleListener(new AbstractLifeCycleListener() | |
{ | |
@Override | |
public void lifeCycleStarting(LifeCycle event) | |
{ | |
if (!(event instanceof Server)) |
This file contains 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 sys | |
import xml.etree.cElementTree as et | |
from io import BytesIO | |
from django.core.exceptions import ValidationError | |
from django.core.validators import ( | |
FileExtensionValidator, | |
get_available_image_extensions, | |
) | |
from django.forms import ImageField as DjangoImageField |
This file contains 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 | |
# for use with cron, eg: | |
# 0 3 * * * postgres /var/db/db_backup.sh foo_db | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 <db_name> [pg_dump args]" | |
exit 1 | |
fi |
OlderNewer