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
#!/usr/bin/env bash | |
# | |
# Install MySQL server | |
# | |
# Author: | |
# Colovic Vladan, First Beat Media | |
# | |
download_dir=/srv/tmp/download | |
download_url=https://dl.dropbox.com/u/191471/FirstBeatMedia/mysql-5.6.11-debian6.0-x86_64.deb |
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
#In form.py | |
#The original source for this : http://djangosnippets.org/snippets/1303/ | |
from django import forms | |
from django.template.defaultfilters import filesizeformat | |
from django.utils.translation import ugettext_lazy as _ | |
# 2.5MB - 2621440 | |
# 5MB - 5242880 | |
# 10MB - 10485760 |