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/sh | |
VARIABLE=${1:-./tests} | |
if [ "$2" = "-w" ]; then | |
echo "Watching dir\n" | |
./vendor/bin/tester --stop-on-fail -c /etc/php5/apache2/php.ini -p php -w $VARIABLE -w . | |
else | |
echo "Run once\n" | |
./vendor/bin/tester --stop-on-fail -c /etc/php5/apache2/php.ini -p php $VARIABLE |
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
# zkompilovani scss souboru pri komitu | |
# ve zmenenych souborech komitu hledej .scss | |
git diff --cached --name-only | grep '\.scss$' | while IFS= read -r line; | |
do | |
# jen pokud soubor existuje | |
if [ -f ${line} ]; then | |
# zkompilovani na CSS | |
echo " kompilace SCSS: " ${line}; | |
scss --update --force --sourcemap=none --no-cache ${line}; |
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
[alias] | |
st = status | |
ci = commit | |
rollback = reset --soft 'HEAD^' | |
unstage = reset HEAD | |
slog = log --graph --oneline --all | |
[user] | |
name = Adam Eda Zemek | |
email = eda@bmhd.cz | |
[color] |
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 | |
#gnome-terminal -x sass.sh --tab | |
#gnome-terminal -x coffee.sh --tab | |
scss --cache-location '/tmp/sass-cache' --debug-info --watch .:. & | |
coffee --watch --compile . |
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 | |
if [[ -z "$1" ]] | |
then | |
DBNAMES=('A' 'B' 'C') | |
else | |
DBNAMES=($1) | |
fi | |
cd '/home/eda/Server/adminer/backups' |