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
# download | |
wget http://downloads.datomic.com/0.8.3848/datomic-pro-0.8.3848.zip | |
unzip datomic-pro-X.X.zip & cd datomic-pro-X.X | |
# install as a maven artifact | |
./bin/maven-install | |
# configure transactor.properties | |
cp config/samples/sql-transactor-template.properties transactor.properties | |
# protocol=sql |
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
# copy files preserving path; ae|web => source dirs; patch => target dir | |
for f in `git log --name-only -1 | awk /ae\|web/`; do find . -regex "./$f" -type f -exec cp --parents "{}" patch \;; done | |
# for-loop | |
for i in `seq 1 10`; do echo $i; done | |
# for-each + counter | |
c=10; for i in `seq 1 10`; do echo "$i => $c"; c=$[c+1]; done |
NewerOlder