waja

waja

Joined 1 year ago

waja
Last active 3 months ago
0 0 3
1 {% comment %}
2 Add content to be output at the bottom of each page. (You might use this for analytics scripts, for example)
3 {% endcomment %}
4 <!-- Load jQuery -->
5 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
6 <script type="text/javascript">
7 jQuery.noConflict(); // ender.js conflicts with jQuery
8 </script>
9 <!-- Load Fancybox -->
10 <script src="https://raw.github.com/fancyapps/fancyBox/master/source/jquery.fancybox.pack.js" type="text/javascript"></script>
waja
Last active 3 months ago
0 0 1
1 #!/bin/bash
2 # curl https://gist.githubusercontent.com/waja/610d48dd792b92f1f1e1df9cce4b92c2/raw/ovh-backuppc-prov.sh | bash -s localhost 127.0.0.1
3 BACKUP_ETC="/etc/backuppc"
4 HOST="${1}"
5 NEW_IP="${2}"
6
7 cp ${BACKUP_ETC}/${HOST}.pl ${BACKUP_ETC}/${HOST}-recover.pl
8 echo "\$Conf{ClientNameAlias} = '${NEW_IP}';" >> ${BACKUP_ETC}/${HOST}-recover.pl
9 sed -i "s/-p 2022 /-p 22 /" ${BACKUP_ETC}/${HOST}-recover.pl
10 chown backuppc:backuppc ${BACKUP_ETC}/${HOST}-recover.pl