Commandes BASH
cd nom du dossier: entrer dans un dossier
cd .. : revenir au dossier précédant
cat nomdufichier : affiche le contenu d’un fichier
pwd : dis moi où je suis !
mkdir nomdudossier : créer un dossier
cd nom du dossier: entrer dans un dossier
cd .. : revenir au dossier précédant
cat nomdufichier : affiche le contenu d’un fichier
pwd : dis moi où je suis !
mkdir nomdudossier : créer un dossier
Goal :
Remove the first 2 characters from a string in cell D1 : =RIGHT(D1,LEN(D1)-2)
Explanations:
Objectifs :
Sauvegarder, synchroniser, accéder, restorer ses données avec rsync
Comment :
rsync copies only the diffs of files that have actually changed, compressed and through ssh if you want to for security
Rsync transactions without SSH are insecure because the protocol and the software itself does not include any content encryption. So if there is a man in the middle he can read/copy what you are backing up. Authentication can be read also
In daemon mode, rsync listens on the default TCP port of 873, serving files in the native rsync protocol or via a remote shell such as RSH or SSH.[fusion_builder_container hundred_percent=”yes” overflow=”visible”][fusion_builder_row][fusion_builder_column type=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”no” center_content=”no” min_height=”none”][5] In the latter case, the rsync client executable must be installed on the remote machine as well as on the local machine.
Bases :
rsync -options –otherOptions sourceDir targetDir
Local:
rsync [OPTION…] SRC… [DEST]
Access via rsync daemon:
Pull:
rsync [OPTION…] [[email protected]]HOST::SRC… [DEST]
Push:
rsync [OPTION…] SRC… [[email protected]]HOST::DEST
Example 1 :
rsync -vaz ~/rep1/ ~/rep2
This example copies the contents of the ~/rep1 directory to the rep2 directory.
a : archive mode
>Recursive mode
>Preserves symbolic links
>Preserves permissions
>Preserves timestamp
>Preserves owner and group
v : verbose
z : zip files
Example 2 :
rsync -vaz ~/rep1 ~/rep2
This example creates a rep1 directory under the ~/rep2 directory and recursively copies the contents of the ~/rep1 into this new directory. This is slighly different from the first example.
Example 3 :
# rsync -av –progress –stats –delete –force hello.php [email protected]::instance/repository/
# rsync -av –progress –stats –delete –force hello.php [email protected]::instance/repository//testsync/
Links :
http://www.tecmint.com/rsync-local-remote-file-synchronization-commands/
http://www.thegeekstuff.com/2010/09/rsync-command-examples/[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]
Un exemple de cercle en pointillés réalisé avec Photoshop
L’idée est d’utiliser le pinceau (Raccourci “b” comme Brush) en choisissant une forme dynamique (Dynamic Shapes : Menu “Fenêtre” puis “Forme”).
Pour dessiner des pointillés de couleurs différentes séléctionner 2 couleurs en arrière-plan et en premier-plan puis dans la fenêtre des formes sélectionnez “Dynamique de la couleur”
Sources :
http://www.growinghappiness.com/2008/03/18/tutorial-creating-dotted-lines-using-photoshop
http://www.growinghappiness.com/2008/04/02/tutorial-creating-dotted-shapes-using-photoshop
$_SERVER
: valeurs renvoyées par le serveur.
$_ENV
: variables d’environnement renvoyées par le serveur.
$_SESSION
: variables de session. (stockées côté serveur le temps de la présence d’un visiteur.)
$_COOKIE
: valeurs des cookies stockées côté client (parfois pendant plusieurs mois) comme par exemple informations sur l’ordinateur du visiteur, son nom etc.
$_GET
: valeur contenant les données envoyées en paramètres dans l’URL.
$_POST
: variable contenant les données envoyées par formulaire.
$_FILES
: variable contenant la liste des fichiers envoyés par formulaire.