Contributions de Administrateur
De www.yakakliker.org
Un utilisateur avec 2 042 modifications. Compte créé le 9 mars 2024.
16 avril 2024
- 11:5016 avril 2024 à 11:50 diff hist +1 291 N Python : Trier une liste Page créée avec « === Inverser les éléments d'une liste === La méthode '''''reverse()''''' permet d'inverser l'ordre des éléments d'une liste comme avec la syntaxe [::-1] :<syntaxhighlight lang="python3"> liste = [1, 2, 3] liste.reverse() print(liste) # [3, 2, 1] </syntaxhighlight> === Trier des éléments d'une liste === La méthode '''''sort()''''' permet de trier les éléments d'une liste du plus petit au plus grand :<syntaxhighlight lang="python3"> liste = [42, 2, 28]... » Balise : Éditeur visuel
- 08:1316 avril 2024 à 08:13 diff hist +70 N Linux : Gestion de l'utilisation de l'espace disque Page créée avec « <syntaxhighlight lang="bash"> du -sm * | sort -rh </syntaxhighlight> » Balise : Éditeur visuel
15 avril 2024
- 15:3215 avril 2024 à 15:32 diff hist +93 N Linux : Se connecter en SSH par échange de clés SSH Page créée avec « === Liens : === https://lecrabeinfo.net/se-connecter-en-ssh-par-echange-de-cles-ssh.html » Balise : Éditeur visuel
9 avril 2024
- 14:589 avril 2024 à 14:58 diff hist +150 Rundeck : Gestion des utilisateurs Aucun résumé des modifications Balise : Éditeur visuel
- 14:369 avril 2024 à 14:36 diff hist +132 N Apache : Tester la configuration Page créée avec « Pour tester la configuration d'apache <syntaxhighlight lang="bash"> apachectl configtest </syntaxhighlight> Catégorie:Apache » Balise : Éditeur visuel
- 09:009 avril 2024 à 09:00 diff hist +1 754 N Rundeck : Configuration de l'URL d'accès Page créée avec « Par défaut, Rundeck n'est accessible uniquement via l'URL : http://localhost:4440 Pour modifier cet URL, éditer le fichier /etc/rundeck/rundeck-config.properties <syntaxhighlight lang="bash"> #loglevel.default is the default log level for jobs: ERROR,WARN,INFO,VERBOSE,DEBUG loglevel.default=INFO rdeck.base=/var/lib/rundeck #rss.enabled if set to true enables RSS feeds that are public (non-authenticated) rss.enabled=false # change hostname here grails.server... » Balise : Éditeur visuel
8 avril 2024
- 15:128 avril 2024 à 15:12 diff hist +139 Rundeck : Installation Aucun résumé des modifications Balise : Éditeur visuel
- 14:578 avril 2024 à 14:57 diff hist +60 Rundeck : Installation Aucun résumé des modifications Balise : Éditeur visuel
- 14:578 avril 2024 à 14:57 diff hist +35 Rundeck : Installation Aucun résumé des modifications Balise : Éditeur visuel
- 14:348 avril 2024 à 14:34 diff hist +70 Rundeck : Installation Aucun résumé des modifications Balise : Éditeur visuel
- 13:508 avril 2024 à 13:50 diff hist +117 N Rundeck : Gestion des utilisateurs Page créée avec « === Liens === https://docs.rundeck.com/docs/learning/getting-started/users-overview.html Catégorie:Rundeck » Balise : Éditeur visuel
4 avril 2024
- 12:104 avril 2024 à 12:10 diff hist +363 N Linux : Liens symboliques Page créée avec « === Créer un lien symbolique === <syntaxhighlight lang="bash"> ln -s /media/files/tb-prod/files files </syntaxhighlight> === Mettre à jour un lien symbolique === <syntaxhighlight lang="bash"> ln -sfn /a/new/path files </syntaxhighlight> === Liens === https://unix.stackexchange.com/questions/151999/how-to-change-where-a-symlink-points Catégorie:Linux » Balise : Éditeur visuel
3 avril 2024
- 13:193 avril 2024 à 13:19 diff hist +55 N Rundeck : Installation Page créée avec « https://docs.rundeck.com/docs/administration/install/ » Balise : Éditeur visuel
30 mars 2024
- 12:2130 mars 2024 à 12:21 diff hist +169 N Reseau : Utilitaires Page créée avec « === Mtr === https://www.malekal.com/comment-utiliser-la-commande-mtr-my-traceroute-linux/ https://www.redhat.com/sysadmin/linux-mtr-command Catégorie:Reseau » Balise : Éditeur visuel
28 mars 2024
- 15:3028 mars 2024 à 15:30 diff hist +162 Installation de Fail2ban →Vérification du service Fail2ban Balise : Éditeur visuel
- 15:3028 mars 2024 à 15:30 diff hist +8 N Fichier:Capture d’écran du 2024-03-28 15-29-50.png Aucun résumé des modifications actuelle
27 mars 2024
- 09:2527 mars 2024 à 09:25 diff hist +1 263 Mikrotik : Tunnel GRE Aucun résumé des modifications Balise : Éditeur visuel
- 09:2527 mars 2024 à 09:25 diff hist +107 N Mikrotik : Tunnel GRE Page créée avec « === Liens === https://help.mikrotik.com/docs/display/ROS/GRE Catégorie:Mikrotik Catégorie:VPN » Balise : Éditeur visuel
26 mars 2024
- 14:3726 mars 2024 à 14:37 diff hist +554 N Python : Les index des chaînes de caractères Page créée avec « <syntaxhighlight lang="python3"> chaine = 'Une chaine' print(chaine[0]) # U print(chaine[1]) # n print(chaine[2]) # e </syntaxhighlight><syntaxhighlight lang="python3"> chaine = 'Une chaine' print(chaine[4:8]) # chai </syntaxhighlight><syntaxhighlight lang="python3"> chaine = 'Une chaine' print(chaine[:-1]) # Une chain print(chaine[4:]) # chaine </syntaxhighlight><syntaxhighlight lang="python3"> chaine = 'Une chaine' print(chaine[2:-1:2]) # ecan print(c... » Balise : Éditeur visuel
- 11:0226 mars 2024 à 11:02 diff hist +310 N Python : Formater les chaînes de caractères Page créée avec « === f-strings === <syntaxhighlight lang="python3"> age = 42 prenom = 'Paul' print(f'Je m\'appelle {prenom} et j\'ai {age} ans') </syntaxhighlight><syntaxhighlight lang="python3"> print(f"Le minimum est {min(-1, 2, 4, -3)}") # Le minimum est -3 </syntaxhighlight> Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 10:1326 mars 2024 à 10:13 diff hist +659 N Python : Opérateurs arithmetiques Page créée avec « <syntaxhighlight lang="python3"> print(2 + 3) # Addition => 5 print(12 - 3) # Soustraction => 9 print(5 * 3) # Multiplication => 15 print(12 / 3 ) # Division => 4.0 print(22 % 6 ) # Modulo => 4 (reste de la division) print(22 // 6 ) # Division entière => 3 print(2 ** 3 ) # 8 </syntaxhighlight><syntaxhighlight lang="python3"> a = 2 b = 3.1 print(a + b) # 5.1 print(a - b) # -1.1 print(a // b) # 0.0 print(a / b) # 0.6451612903225806 print(a * b) # 6.2 </syntax... » Balise : Éditeur visuel
- 09:5126 mars 2024 à 09:51 diff hist +118 N Python : Les nombres entiers Page créée avec « <syntaxhighlight lang="python3"> print(int('2')) </syntaxhighlight> Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 09:3826 mars 2024 à 09:38 diff hist +350 N Python : Break, continue et pass Page créée avec « <syntaxhighlight lang="python3"> for n in range(10): if n % 2 == 0: continue print(n) </syntaxhighlight> Cela n'affichera que les nombres impairs. En effet, à chaque fois que la condition n % 2 == 0 sera vraie, l'itération sera sautée et l'instruction print(n) ne sera donc pas exécutée. Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 09:3026 mars 2024 à 09:30 diff hist +205 N Python : While Page créée avec « <syntaxhighlight lang="python3"> i = 0 while i <= 20: reponse = input("Entrez un entier supérieur à 20 : ") i = int(reponse) print(i) </syntaxhighlight> Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 09:0826 mars 2024 à 09:08 diff hist +339 N Python : Enumerate Page créée avec « <syntaxhighlight lang="python3"> saisons = ["été", "automne", "hiver", "printemps"] for i, saison in enumerate(saisons): print(f"La saison {i} est {saisons[i]}") # La saison 0 est été # La saison 1 est automne # La saison 2 est hiver # La saison 3 est printemps </syntaxhighlight> Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
25 mars 2024
- 17:1525 mars 2024 à 17:15 diff hist +328 N Python : Le type range Page créée avec « <syntaxhighlight lang="python3"> range(départ, arrivée, pas) </syntaxhighlight><syntaxhighlight lang="python3"> range = range(0, 10, 2) for i in range: print(i) </syntaxhighlight><syntaxhighlight lang="python3"> print(list(range(0, 10, 3))) # [0, 3, 6, 9] </syntaxhighlight> Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 16:2525 mars 2024 à 16:25 diff hist +289 N Python : La boucle for Page créée avec « <syntaxhighlight lang="python3"> for element in [1, 2, 3]: print(element) print(element) </syntaxhighlight><syntaxhighlight lang="python3"> compteur = 0 for element in 'Bonjour': compteur += 1 print(element, compteur) </syntaxhighlight> Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 16:1425 mars 2024 à 16:14 diff hist +239 N Python : Les iterables Page créée avec « === Exemple === <syntaxhighlight lang="python3"> liste = [1, 2, 3] iterateur = iter(liste) print(next(iterateur)) # 1 print(next(iterateur)) # 2 print(next(iterateur)) # 3 </syntaxhighlight> Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 15:5925 mars 2024 à 15:59 diff hist +176 N Python : Operateur ternaire Page créée avec « === Exemple === <syntaxhighlight lang="python3"> age = 12 adulte = True if age >= 18 else False print(adulte) </syntaxhighlight> Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 14:2025 mars 2024 à 14:20 diff hist +1 000 N Python : Operateur match Page créée avec « <syntaxhighlight lang="python3"> erreur = 406 match erreur: case 400: print("La syntaxe de la requête est erronée.") case 401: print("Une authentification est nécessaire pour accéder à la ressource.") case 402: print("Paiement requis pour accéder à la ressource.") case 403: print("Le serveur a compris la requête, mais refuse de l'exécuter.") case 404: print("Ressource non trouvée.") case... » Balise : Éditeur visuel
- 14:0525 mars 2024 à 14:05 diff hist +699 N Python : Operateurs logiques Page créée avec « === L'opérateur and === <syntaxhighlight lang="python3"> print(True and True) # True print(True and False) # False print(False and True) # False print(False and False) # False </syntaxhighlight> === L'opérateur or === <syntaxhighlight lang="python3"> print(True or True) # True print(True or False) # True print(False or True) # True print(False or False) # False </syntaxhighlight> === L'opérateur not === <syntaxhighlight lang="python3"> print(not 1)... » Balise : Éditeur visuel
- 11:4525 mars 2024 à 11:45 diff hist +451 N Python : If, elif & else Page créée avec « === Exemple : === <syntaxhighlight lang="python3"> a = 10 if a > 50: print('Supérieur à 50') elif a > 20: print('Supérieur à 20') elif a > 5: print('Supérieur à 5') # Cette instruction sera exécutée else: print('Inférieur à 5') </syntaxhighlight> === Liens === https://dyma.fr/developer/list/chapters/core/61969e0166ef0d5e68f7f647/lesson/python/619801296638f0c94cbbe6c0/3/2 Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 11:2025 mars 2024 à 11:20 diff hist +128 Python : Expressions, Declaration & types d'execution Aucun résumé des modifications Balise : Éditeur visuel
- 11:2025 mars 2024 à 11:20 diff hist +986 Python : Expressions, Declaration & types d'execution Aucun résumé des modifications Balise : Éditeur visuel
- 11:1225 mars 2024 à 11:12 diff hist +105 N Python : Expressions, Declaration & types d'execution Page créée avec « == Expressions et déclarations == == Flot de contrôle (control flow) et structures de contrôle == »
22 mars 2024
- 17:2822 mars 2024 à 17:28 diff hist +1 987 N Python : Les opérateurs de comparaison Page créée avec « === L'égalité avec == === L'opérateur == va vérifier l'égalité entre deux valeurs.<syntaxhighlight lang="python3"> print(1 == True) # True print("1" == 1) # False print(0 == False) # True print("" == False) # False print(1 == 1.0) # True </syntaxhighlight><syntaxhighlight lang="python3"> print([1, 2, 3] == [1, 2, 3]) # True print([1, 2, 3] == [4, 5, 6]) # False print({1, 2, 3} == {1, 2, 3}) # True print((1, 2, 3) == (1, 2, 3)) # True print({'a': 1, 'b': 2}... » Balise : Éditeur visuel
- 16:4922 mars 2024 à 16:49 diff hist +558 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 16:2022 mars 2024 à 16:20 diff hist +143 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 16:2022 mars 2024 à 16:20 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-19-03.png Aucun résumé des modifications actuelle
- 16:1522 mars 2024 à 16:15 diff hist +247 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 16:1222 mars 2024 à 16:12 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-12-30.png Aucun résumé des modifications actuelle
- 16:0822 mars 2024 à 16:08 diff hist +111 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 16:0822 mars 2024 à 16:08 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-08-11.png Aucun résumé des modifications actuelle
- 16:0622 mars 2024 à 16:06 diff hist +110 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 16:0622 mars 2024 à 16:06 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-05-47.png Aucun résumé des modifications actuelle
- 16:0422 mars 2024 à 16:04 diff hist +115 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 16:0322 mars 2024 à 16:03 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-03-35.png Aucun résumé des modifications actuelle
- 16:0122 mars 2024 à 16:01 diff hist +115 Python : Operators →Liens Balise : Éditeur visuel
- 16:0022 mars 2024 à 16:00 diff hist +287 N Python : Operators Page créée avec « === Opérateurs arithmétiques === sans_cadre|591x591px === Opérateurs d'assignation === sans_cadre|588x588px === Liens === Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
- 16:0022 mars 2024 à 16:00 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-00-06.png Aucun résumé des modifications actuelle