Skip to content

Instantly share code, notes, and snippets.

😊
Working hard

Francesco fvigotti

😊
Working hard
Block or report user

Report or block fvigotti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jenkins_backup
#!/bin/bash
set -xe
do_backup(){
rsync -avz --delete-after --exclude='.trashcan' /jhome/ /jbackup/
}
while : ; do sleep 300 ; do_backup ; done
View echo-date-loop
#!/bin/bash
for ((i = 0; ; i++)); do echo "$i: $(date)" > $1; echo "looping $i , $(date)"; sleep 1; done
@fvigotti
fvigotti / cifs-clean.sh
Last active May 12, 2018
cifs flexvolume
View cifs-clean.sh
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
View waitFor | bash
#credits : https://raw.githubusercontent.com/meteorhacks/kube-init/master/kube-init.sh
waitFor() {
cmd=$1
while [ 1 ]; do
ok=$(eval $cmd)
if [ "$ok" ]; then
break
fi
sleep 1
You can’t perform that action at this time.