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 | |
cd / | |
if [ ! -f /backup/ready ]; then | |
echo "backup device not ready" | |
exit | |
fi | |
DATE=`date +%Y-%m-%d` | |
STDOUT=/var/log/archive-${DATE}.log |
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 | |
cd / | |
if [ ! -f /backup/ready ]; then | |
echo "backup device not ready" | |
exit | |
fi | |
DATE=`date +%Y-%m-%d` | |
STDOUT=/var/log/backup-${DATE}.log |
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/sh | |
COMMAND="" | |
for arg in $@; do | |
if [ "$arg" = ";" ]; then | |
$COMMAND | |
COMMAND="" | |
else | |
COMMAND="$COMMAND $arg" | |
fi |
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 | |
if [ "$#" -lt 2 ]; then | |
>&2 echo "Usage: $0 FILE COMMAND [ARGS...]" | |
exit 1 | |
fi | |
target="$1" | |
shift | |
"$@" < "$target" | sponge "$target" |
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
Martin Fowler hat es sehr weise Formuliert wie ich finde: | |
Feature Flags: | |
http://martinfowler.com/bliki/FeatureToggle.html | |
http://code.flickr.net/2009/12/02/flipping-out/ | |
Feature Branch: | |
http://martinfowler.com/bliki/FeatureBranch.html |
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
$ cat tests/TestSequenceFunctions.py | |
import random | |
import unittest | |
class TestSequenceFunctions(unittest.TestCase): | |
def setUp(self): | |
self.seq = range(10) | |
def test_shuffle(self): |
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
package getmultiple; | |
import java.io.IOException; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.client.params.ClientPNames; | |
import org.apache.http.conn.scheme.PlainSocketFactory; | |
import org.apache.http.conn.scheme.Scheme; |
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
Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it ;) - Torvalds, Linus |
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
for i in *.sqlite ; do echo $i ; echo ".dump" | sqlite3 $i > $i.sql && rm $i && sqlite3 $i < $i.sql ; done |
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
-- Zum durchgeführten Dojo | |
Gute Slideshare Präsentation zu Coding Dojo http://www.slideshare.net/vietnt84/coding-dojo-8752038 | |
Youtube Video zum Ablauf des coding Dojo "How do you put on a coding dojo event? ": http://www.youtube.com/watch?v=gav9fLVkZQc | |
Kata: FizzBuzz: http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz | |