get project list from a repo
repo forall -c 'echo $REPO_PATH:$REPO_PROJECT > path_list.txt'
filter non-exist path
cat path.txt | while read p; do a=`echo $p | cut -d ':' -f1`; b=`echo $p | cut -d ':' -f2`; if [ -d $a ]; then echo $a:$b; fi; done;
#!/bin/bash | |
# This script will help you setup Docker for TLS authentication. | |
# Run it passing in the arguement for the FQDN of your docker server | |
# | |
# For example: | |
# ./create-docker-tls.sh myhost.docker.com | |
# | |
# The script will also create a profile.d (if it exists) entry | |
# which configures your docker client to use TLS | |
# |
docker start image daemon | |
https://stackoverflow.com/questions/24706708/how-to-start-docker-container-as-server |
get project list from a repo
repo forall -c 'echo $REPO_PATH:$REPO_PROJECT > path_list.txt'
filter non-exist path
cat path.txt | while read p; do a=`echo $p | cut -d ':' -f1`; b=`echo $p | cut -d ':' -f2`; if [ -d $a ]; then echo $a:$b; fi; done;
find . -type f -name '*java' -exec enca -L zh_CN -x UTF-8 {} \; |
pushd $OUT | |
arch=$(date +y+m+d) | |
mkdir -p ../$arch | |
cp -uvL * ../$arch | |
tar zcvf ../$arch.tar.gz ../$arch/* | |
popd |
#!/bin/bash | |
showUsage() | |
{ | |
echo "Usage: dos2unixdir [destdir]" | |
exit 0 | |
} | |
dir=$PWD | |
if [ $# -gt 1 ] | |
then |