Contributions de Administrateur
De www.yakakliker.org
Un utilisateur avec 1 937 modifications. Compte créé le 9 mars 2024.
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
- 15:5822 mars 2024 à 15:58 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 15-58-01.png Aucun résumé des modifications actuelle
- 15:3122 mars 2024 à 15:31 diff hist +97 Python : Les variables Aucun résumé des modifications Balise : Éditeur visuel
- 15:3022 mars 2024 à 15:30 diff hist +16 N Fichier:Capture d’écran du 2024-03-22 15-29-41.png Aucun résumé des modifications actuelle
- 11:5922 mars 2024 à 11:59 diff hist +422 N Python : Les variables Page créée avec « === Déclarer une variable === <syntaxhighlight lang="python3"> nom_de_la_variable = uneValeur </syntaxhighlight> === Afficher une variable === <syntaxhighlight lang="python3"> variable = 'Bonjour tout le monde' print(variable) </syntaxhighlight> === Liens === https://dyma.fr/developer/list/chapters/core/619556fdd5fe7e09d4aba395/lesson/python/61969e5866ef0d5e68f7f66d/2/2 Catégorie:Python Catégorie:Scripts » Balise : Éditeur visuel
20 mars 2024
- 08:4120 mars 2024 à 08:41 diff hist +309 N Fail2ban : Débannir une adresse IP Page créée avec « <syntaxhighlight lang="bash"> fail2ban-client set jail unbanip ip </syntaxhighlight> * Exemple <syntaxhighlight lang="bash"> fail2ban-client set sshd unbanip 212.227.108.142 </syntaxhighlight> === Liens === https://www.linuxtricks.fr/wiki/fail2ban-bannir-automatiquement-les-intrus Catégorie:Fail2ban » Balise : Éditeur visuel
19 mars 2024
- 16:5819 mars 2024 à 16:58 diff hist +160 N Thinlinc : Interface d'administration Page créée avec « <syntaxhighlight lang="bash"> https://IP:1010 </syntaxhighlight> === Liens === https://www.cendio.com/resources/docs/tag/tlwebadm.html Catégorie:Thinlinc » Balise : Éditeur visuel
- 16:5619 mars 2024 à 16:56 diff hist +488 N Aruba : Création d'un VLAN Taggé sur un port Page créée avec « <syntaxhighlight lang="bash"> Access-1# configure terminal Access-1(config)# interface 1/1/28 Access-1(config-if)# vlan trunk allowed 1,111 Access-1(config-if)# end Access-1# Verification : Access-1# show interface trunk ------------------------------------------------------------------------- Port Native VLAN Trunk VLANs ------------------------------------------------------------------------- 1/1/28 1 1,111 Access-1# </syntaxhighlight> Catégorie:Aruba... » Balise : Éditeur visuel
- 16:5519 mars 2024 à 16:55 diff hist +239 N Aruba : Création d'un VLAN Page créée avec « <syntaxhighlight lang="bash"> Access-1# configure terminal Access-1(config)# vlan 111 Access-1(config-vlan-111)# name EMPLOYEES Access-1(config-vlan-111)# exit Access-1(config)# </syntaxhighlight> Catégorie:Aruba Catégorie:Reseau » Balise : Éditeur visuel
- 16:5419 mars 2024 à 16:54 diff hist +263 N Aruba : Configuration d'un VLAN en Untag sur un port Page créée avec « <syntaxhighlight lang="bash"> Access-1(config)# interface 1/1/1 Access-1(config-if)# vlan access 111 Access-1(config-if)# interface 1/1/13 Access-1(config-if)# vlan access 111 Access-1(config-if)# exit </syntaxhighlight> Catégorie:Aruba Catégorie:Reseau » Balise : Éditeur visuel
- 16:5219 mars 2024 à 16:52 diff hist +263 N Aruba : Configuration LACP Page créée avec « <syntaxhighlight lang="bash"> SwAruba# conf t SwAruba(config)# trunk 1/51,1/52 trk1 lacp SwAruba(config)# interface trk1 SwAruba(eth-Trk1)# tagged vlan 10,20,30 SwAruba(eth-Trk1)# untagged vlan 1 </syntaxhighlight> Catégorie:Aruba Catégorie:Reseau » Balise : Éditeur visuel
- 16:5119 mars 2024 à 16:51 diff hist +125 N Aruba : Configuration de la gateway par défaut Page créée avec « <syntaxhighlight lang="bash"> ip route 0.0.0.0/0 x.x.x.x wr mem </syntaxhighlight> Catégorie:Aruba Catégorie:Reseau » Balise : Éditeur visuel