Skip to content

Instantly share code, notes, and snippets.

View sandrokeil's full-sized avatar

Sandro Keil sandrokeil

View GitHub Profile
@sandrokeil
sandrokeil / git-batch-clone
Last active April 8, 2017 23:29
git-batch-clone
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "First parameter is a file with a list of repos and second parameter is the git path e.g. git-batch-clone repos.txt git@github.com:sandrokeil/"
fi
cd $(pwd)
cat $1 | while read line
do
if [ ! -d "$line" ]; then
@sandrokeil
sandrokeil / gist:30a197f2b92ef524257a
Created January 9, 2016 11:43
Verifying that +sandrokeil is my blockchain ID. https://onename.com/sandrokeil
Verifying that +sandrokeil is my blockchain ID. https://onename.com/sandrokeil
@sandrokeil
sandrokeil / git-batch-upstream
Last active January 5, 2016 21:53
git-batch-upstream
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "First parameter is a file with a list of repos and second parameter (optional) is git path e.g. git-batch-upstream repos.txt git@github.com:sandrokeil/"
fi
ROOTDIR=$(pwd)
cd $ROOTDIR
cat $1 | while read line