Skip to content

Instantly share code, notes, and snippets.

View guessi's full-sized avatar
🎯
Focusing

guessi guessi

🎯
Focusing
View GitHub Profile
@guessi
guessi / reposync.sh
Last active March 22, 2017 09:36
a simple helper script for mirroring from one to another
#!/bin/sh
if [ $# -ne 2 ]; then
cat <<-EOF
Usage: reposync.sh <src-repo-uri> <target-repo-uri>
EOF
exit 1
fi
@guessi
guessi / validate.sh
Created July 29, 2015 00:36
validation image name for docker agent
#!/bin/sh
PATTERN="^([a-z0-9]+([._-]{0,1}[a-z0-9])*\/)*[a-zA-Z0-9]+([._-]{0,1}[a-z0-9])*(:[A-Za-z0-9][A-Za-z0-9.-]*){0,1}$"
for input in \
i \
image \
i:t \
i:t::: \
image:t \