<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://aga.ovh/doc/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://aga.ovh/doc/feed.php">
        <title>Documentation - prog</title>
        <description></description>
        <link>https://aga.ovh/doc/</link>
        <image rdf:resource="https://aga.ovh/doc/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-15T00:26:12+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:git&amp;rev=1756229165&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:index&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:langageprog&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:postgres&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell-array&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell-copy-move-delete-files&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell-date-time&amp;rev=1687003297&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell-introduction&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell-managing-object&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell-string-manipulation&amp;rev=1687003297&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell-variable&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell-write-host&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:powershell&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:sqlbulkcopy&amp;rev=1687003298&amp;do=diff"/>
                <rdf:li rdf:resource="https://aga.ovh/doc/doku.php?id=prog:sqlite&amp;rev=1687003298&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://aga.ovh/doc/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Documentation</title>
        <link>https://aga.ovh/doc/</link>
        <url>https://aga.ovh/doc/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:git&amp;rev=1756229165&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-08-26T17:26:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>git</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:git&amp;rev=1756229165&amp;do=diff</link>
        <description>Git

Prérequis

Dans windows il faut cliquer sur source control et download Git for Windows

Marche à suivre pour création d&#039;un projet en copiant le git en local

il faut créer un dossier vide et y aller


git init
git pull https://romote.git


Aller dans le répertoire .ssh
ouvrir un éditeur et copier le contenu. Copier dans</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:index&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>index</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:index&amp;rev=1687003298&amp;do=diff</link>
        <description>Programmation

Powershell

PostgreSQL
Sqlite

git

php

Codeigniter

Langage de programmation

Accueil</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:langageprog&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>langageprog</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:langageprog&amp;rev=1687003298&amp;do=diff</link>
        <description>Lamgage de programmation

powershell

developpementweb

Programmation

Accueil</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:postgres&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgres</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:postgres&amp;rev=1687003298&amp;do=diff</link>
        <description>PostgreSQL

PostgreSQL est une base de données libre semblable aux autres bases de données (Oracle, SQL server de Microsoft ou Mysql). 

Voici quelques notes mémo...

Installation

Sur debian ou ubuntu 


apt install postgresql postgresql-client</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell-array&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell-array</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell-array&amp;rev=1687003298&amp;do=diff</link>
        <description>Powershell : Arrays

powershell


#déclaration d&#039;un tableau
$Array = @()

$Processes = Get-Process
# On charge un tableau
Foreach($proc in $Processes)
{
   if ( $proc.ws/1mb -gt 100){
        $proc.ws/1mb
            write-host $proc.name 
        $array += New-Object psobject -property @{&#039;ProcessName&#039; = $proc.name; &#039;WorkingSet&#039; = $Proc.ws} 
   }
}
# on ne prends que 2 champs et on exporte dans un csv
$Array | select &#039;ProcessName&#039;,&#039;WorkingSet&#039; | Export-csv .\file.csv -noTypeInformation

$csvimpo…</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell-copy-move-delete-files&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell-copy-move-delete-files</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell-copy-move-delete-files&amp;rev=1687003298&amp;do=diff</link>
        <description>Powershell : Copy move delete files

powershell

#comme la syntax de linux ls permet d&#039;avoir la liste d&#039;un répertoire  (get-ChildItem)
ls 
# Création répertoire (mkdir)
md 
#Copier un fichier dans un répertoire
copy-item test1.txt mdfolder\
Attention copy écrase si le fichier existe</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell-date-time&amp;rev=1687003297&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell-date-time</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell-date-time&amp;rev=1687003297&amp;do=diff</link>
        <description>Powershell : Date et heures

powershell

Afficher la date du jour avec ses propriétés


$d = Get-Date
// afficher les propriétés
$d | select *
$d.year 


Pour connaitres les membres d&#039;un objet  On peut avoir le propriétés, les méthodes de l&#039;objet


$d | get-member</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell-introduction&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell-introduction</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell-introduction&amp;rev=1687003298&amp;do=diff</link>
        <description>Introduction

powershell

Pour commencer avec PowerShell il faut ouvrir un terminal PowerShell qui est présent dans le système Windows. Sur la barre de recherche taper PowerShel. Ouvrez en tant qu&#039;administrateur
La touche tab permet de compléter une commande</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell-managing-object&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell-managing-object</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell-managing-object&amp;rev=1687003298&amp;do=diff</link>
        <description>Powershell : Gestion des objets

powershell

get-psdrive : affiche la liste des partitions ou lecteurs
? : alias qui signifie where-object

$_ représente l&#039;object courrant  envoyé par le pipe

$_.free : espace libre ($_.free/1gb) libre en giga
(“{0:N2}” -f (12345) afficher le nombre avec 2 chiffres aprés la virgule</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell-string-manipulation&amp;rev=1687003297&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell-string-manipulation</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell-string-manipulation&amp;rev=1687003297&amp;do=diff</link>
        <description>Powershell : String manipulation

powershell

$texte = &#039;Bonjour ceci est un texte&#039;

Mettre en majuscule
$texte.ToUpper()

Recherche d&#039;un texte
$texte.contains(&#039;ceci&#039;)
True

Recherche des tous les fichiers contenant une chaine
ls | where-Object{$_.Name.Contains(&#039;Titre&#039;)}
Ceci est comparable à ls  *Titre*</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell-variable&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell-variable</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell-variable&amp;rev=1687003298&amp;do=diff</link>
        <description>Powershell : Variables

powershell

Introduction aux variables

Variable chaine de caratères
$v = “ceci est une chaine de caractère”
write-host $v

On peut avoir une variable object


$d = Get-ChildItem
foreach($d1 in $d){ write-host $d1.name}
# pour avoir uniquement les répertoires
$d =Get-ChildItem -Attributes Directory
# pour avoir uniquement les fichiers
$d =Get-ChildItem -Attributes !Directory
#On peut avoir la description de la variable
$d | Get-Member
#Pour voir l&#039;ensemble des variables
G…</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell-write-host&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell-write-host</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell-write-host&amp;rev=1687003298&amp;do=diff</link>
        <description>Powershell : Write host

powershell

Write-Host affiche à l&#039;écran


&quot;ici on met un texte&quot; | out-file log.txt
#affiche le texte dans un éditeur
.\log.txt
write-error &quot;write in red&quot;
write-warning &quot;write in yellow&quot; -warninAction Inquire



powershell</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:powershell&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:powershell&amp;rev=1687003298&amp;do=diff</link>
        <description>PowerShell

Sur windows Powershell est installé par défaut sur linux il faut lancer la commande

powershell-introduction

Managing object

Travailler avec les dates

Write-host

Copy delete move delete file

String manipulation

Variable

Array

sudo snap install powershell --classic

Array &lt;https://youtu.be/PXBMdIkH24I&gt;

For each object &lt;https://youtu.be/BoutUXsBGcU&gt;

For each &lt;https://youtu.be/oCKZ9L-u3wg&gt;

sqlBulkCopy

lire une table AS400 avec powershell

Accueil</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:sqlbulkcopy&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>sqlbulkcopy</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:sqlbulkcopy&amp;rev=1687003298&amp;do=diff</link>
        <description>sqlBulkCopy

Voici un exemple de source powershell qui permet de copier une table vers une autre. 
La table de destination sera vidé de son contenue et le continue de la table source sera copié.


$SrcServer=  &quot;ServeurSource&quot;
$SrcDatabase = &quot;BaseSource&quot;
$SrcTable = &quot;TableSource&quot;
$DestServer=  &quot;ServeurDestination&quot;
$DestDatabase = &quot;BaseDestination&quot;
$DestTable = &quot;TableDestination&quot;
$auth = &quot;Active Directory Integrated&quot;

$SrcConnStr = &quot;Server = $SrcServer; Database = $SrcDatabase; Authentication = $a…</description>
    </item>
    <item rdf:about="https://aga.ovh/doc/doku.php?id=prog:sqlite&amp;rev=1687003298&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-17T12:01:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>sqlite</title>
        <link>https://aga.ovh/doc/doku.php?id=prog:sqlite&amp;rev=1687003298&amp;do=diff</link>
        <description>Sqlite

Installation d&#039;un utilitaire pour gérer

Linux


$sudo apt install sqlitebrowser


Sauvegarde en ligne de commande


sqlite3 /chemin/db.db .dump &gt; dump.sql


On peut remplacer la commande .dump par une autre commande sql3
par exemple .shema pour avoir la description</description>
    </item>
</rdf:RDF>
