This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ---- | |
# | |
# Script de backup serveur perso vers serveur distant | |
# Fonctionnemenent : | |
# 1. Targz de /var/www | |
# 2. Targz de /etc/apache2/sites-available | |
# 3. Dump de toutes les bases de données MySql | |
# 4. Zip du backup courant avec protection par mot de passe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while [ l=l ] | |
do | |
#eject cdrom | |
eject | |
#pull cdrom track back in | |
eject -t | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sS https://gist.githubusercontent.com/bobey/2b09d2cc72fbcc8cf551/raw/get-gitlab-projets.php | \ | |
php -- http://gitlab.com YOUR-PRIVATE-TOKEN your-namespace | \ | |
xargs -n 1 git clone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AWS = require('aws-sdk'); | |
AWS.config.update({region: 'eu-west-1'}); | |
var ec2 = new AWS.EC2(); | |
ec2.describeInstances({}, function(err, data) { | |
data.Reservations.forEach(function(reservation) { | |
reservation.Instances.forEach(function(instance) { |
OlderNewer