title | category |
---|---|
Git config |
Git |
Ne pas oublier : l'aide en ligne de commande.
#!/bin/bash | |
# https://gist.github.com/robwierzbowski/5430952/ | |
# Create and push to a new github repo from the command line. | |
# Grabs sensible defaults from the containing folder and `.gitconfig`. | |
# Refinements welcome. | |
# Gather constant vars | |
CURRENTDIR=${PWD##*/} | |
GITHUBUSER=$(git config github.user) |
# Documentation: https://developers.google.com/compute/docs/gcutil/ | |
# Move into home directory | |
cd ~ | |
# Download gcutil-1.8.2.zip | |
curl https://google-compute-engine-tools.googlecode.com/files/gcutil-1.8.2.zip > gcutil-1.8.2.zip | |
# Unpack gcutil and remove original file | |
unzip gcutil-1.8.2.zip && unlink gcutil-1.8.2.zip |
wget http://stedolan.github.io/jq/download/linux64/jq | |
aws ec2 describe-instances --filters "Name=tag:Name,Values=$NAME" \ | |
"Name=instance-state-name,Values=running" \ | |
| jq -r \ | |
".Reservations[] | .Instances[] | .InstanceId" \ | |
aws ec2 describe-volumes --filters \ | |
"Name=status,Values=available" \ | |
| jq -r ".Volumes[] | .VolumeId" \ |
<?php | |
use Aws\Common\Aws; | |
use Aws\S3\Exception\S3Exception; | |
// make sure the SDK is installed | |
// I've used Composer to autoload it: http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html | |
/* | |
* jQuery File Upload Plugin PHP Class 7.1.0 | |
* https://github.com/blueimp/jQuery-File-Upload |
/** | |
* Command: casperjs chomecast-bgs.js [DIR] [START] [END] | |
* Examples: casperjs chomecast-bgs.js ~/Downloads/Chromecast | |
* casperjs chomecast-bgs.js ~/Downloads/Chromecast 25 | |
* casperjs chomecast-bgs.js ~/Downloads/Chromecast 25 35 | |
* | |
* Note: [DIR] (Required) The directory to download. This must exist, it won't be created. | |
* [START] (Optional) Start is the image number to start from, incase the script fails and needs to be restarted. | |
* [END] (Optional) End is the image number to finish at, if you only want a specific range of images. | |
*/ |
*** | |
*** Inscrivez vous aux webinaires 2017 : https://attendee.gotowebinar.com/register/7239291589398918401 | |
*** | |
Webinaire "Présentation des principaux services AWS" : | |
https://www.youtube.com/watch?v=FC--jteXU_8 | |
http://www.slideshare.net/JulienSIMON5/presentation-des-services-aws | |
Webinaire "Modèle de sécurité AWS" : | |
https://www.youtube.com/watch?v=1QeKH-5nTIc |
This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.
The script will create backups using tar
with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.
To create backup script that will be executed every day we can create backup script in /etc/cron.daily/
folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:
touch /etc/cron.daily/pvehost-backup