Skip to content

Instantly share code, notes, and snippets.

View EdaCZ's full-sized avatar

Adam Zemek EdaCZ

  • Brno, Czech Republic
View GitHub Profile
@EdaCZ
EdaCZ / tester
Last active August 29, 2015 14:25
Runner for Nette\Tester
#!/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
@EdaCZ
EdaCZ / pre-commit
Last active November 8, 2017 00:48
# 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};
[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]
#!/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 .
#!/bin/bash
if [[ -z "$1" ]]
then
DBNAMES=('A' 'B' 'C')
else
DBNAMES=($1)
fi
cd '/home/eda/Server/adminer/backups'