Skip to content

Instantly share code, notes, and snippets.

View fgrosse's full-sized avatar
😎
automating all the things

Friedrich Große fgrosse

😎
automating all the things
View GitHub Profile
#!/bin/bash
# create a test dir stack
foostack() {
local i
[[ -d "$HOME/tmp" ]] && TEMPDIR="$HOME/tmp" || TEMPDIR="/tmp"
for ((i=1;i<10;i++)); do
mkdir -p "$TEMPDIR/testdir/dir-$i" && touch $TEMPDIR/testdir/{dir-$i,.}/file-{1..9}
done
echo "Done, look into $TEMPDIR/testdir"
}
#
# = Capistrano database.yml task
#
# Provides a couple of tasks for creating the database.yml
# configuration file dynamically when deploy:setup is run.
#
# Category:: Capistrano
# Package:: Database
# Author:: Simone Carletti <weppos@weppos.net>
# Copyright:: 2007-2010 The Authors