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
# execute command when file changed | |
#!/bin/bash | |
set -e | |
prev_cs=""; while true; do | |
cur_cs="`md5sum $*`" | |
if [ "$cur_cs" != "$prev_cs" ]; then | |
rake # change to your command |
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
Django | |
Model: | |
Class Based Model: | |
* class MODEL(models.Model): | |
FIELD1 = models.AFIELD([FIELDNAME], [default=VALUE]) | |
def __str__(self): | |
... | |
Fields: |
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 | |
set -e | |
KERNEL_VERSION=`uname -r` # make sure kernel version >= 3.10 | |
if [[ $KERNEL_VERSION != *"3.1"* ]]; then | |
echo "Kernel version must be >= 3.10" | |
fi | |
# for ubuntu 14: there's nothing required to install | |
# for ubuntu 12 |
NewerOlder