project-name aims at... (goals, comparison with others on the market)
Features:
- 1
- 2
du -a / | sort -n -r | head -n 10 |
from django.db import models | |
import uuid | |
class UUIDField(models.CharField): | |
""" | |
A field which stores a UUID value in hex format. This may also have | |
the Boolean attribute 'auto' which will set the value on initial save to a | |
new UUID value (calculated using the UUID1 method). Note that while all | |
UUIDs are expected to be unique we enforce this with a DB constraint. |
#!/usr/bin/env sh | |
if [ -z $1 ] | |
then | |
echo "Input name, one of:" | |
ls /etc/openvpn/*.conf | sed 's/\/etc\/openvpn\///' | sed 's/.conf//' | |
exit 1 | |
fi | |
sudo openvpn --config /etc/openvpn/$1.conf |
#!/bin/bash | |
echo "copy_mysqldb.sh -- p.kilczuk@neumea.pl" | |
echo "version 0.1.0" | |
echo "" | |
REMOTE_DBNAME="" | |
REMOTE_USER="" | |
REMOTE_HOST="" | |
REMOTE_PORT="3306" |
find . -name "*.pyc" -exec rm '{}' ';' | |
find . -name "*.pyo" -exec rm '{}' ';' |
#!/usr/bin/env python | |
import glob | |
import os.path | |
import socket | |
import subprocess | |
import sys | |
# manage.py must be made executable in order for this to work |
rm -rf `find . -type d -name .svn` |
#!/bin/bash | |
# Usage: | |
# rsync.sh re/mo/te/dir lo/cal/dir | |
# re/mo/te/dir will be appended to this | |
BASEDIR='user@host:/data/stor/www/...' | |
rsync --checksum --compress --exclude '.svn' --links --perms --progress --recursive --update --verbose $BASEDIR$1 $2 |
from django.core.files.storage import FileSystemStorage | |
import unidecode | |
class ASCIIFileSystemStorage(FileSystemStorage): | |
""" | |
Convert unicode characters in name to ASCII characters. | |
""" | |
def get_valid_name(self, name): | |
name = unidecode.unidecode(name) |