This file contains hidden or 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
    
  
  
    
  | $source = "dir/dir/dir"; | |
| $dest= "dest/dir"; | |
| foreach ( | |
| $iterator = new RecursiveIteratorIterator( | |
| new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS), | |
| RecursiveIteratorIterator::SELF_FIRST) as $item | |
| ) { | |
| if ($item->isDir()) { | |
| mkdir($dest . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | Créer un nouveau screen en nommant la session : screen -S nom_de_la_session | |
| Pour se détacher de la session du screen : Saisir la suite de touche clavier suivante : [CTRL]+[a] suivi de [d] | |
| Pour se rattacher à la session du screen : screen -r nom_de_la_session | |
| Connaître les screen existants : screen -ls | |
| Supprimer un screen : screen -X -S NOMDUSCREEN kill | 
  
    
      This file contains hidden or 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
    
  
  
    
  | Sauvegarde sur votre ordinateur de votre site internet : | |
| lftp ftp://moi:motdepasse@ftp.perso.com -e "mirror -e -R -x gestion/exemples/ -x documents/multimedia/musique/ /var/www/mon_site/ / ; quit" | |
| Mise à jour de votre site Internet modifié localement : | |
| lftp ftp://identifiant:mot_de_passe@site_de_connexion -e "mirror -e -R -x dossier_ignoré -x dossier_ignoré /emplacement_local /emplacement_distant ; quit" | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Mettre un .gitignore dans le dossier et d'y ajouter les deux lignes suivantes | |
| * | |
| !.gitignore | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Assembler plusieurs fichiers PDF en un seul | |
| pdftk *.pdf cat output big.pdf | |
| # Découper un fichier PDF page par page (split) | |
| pdftk big.pdf burst | 
  
    
      This file contains hidden or 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 -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" -s URL | 
  
    
      This file contains hidden or 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
    
  
  
    
  | egrep -lwsr "TEXT" /DIRECTORY | 
NewerOlder