Contributions de Administrateur
De www.yakakliker.org
Un utilisateur avec 2 068 modifications. Compte créé le 9 mars 2024.
26 mars 2024
- 10:3026 mars 2024 à 10: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
- 10:0826 mars 2024 à 10: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
- 18:1525 mars 2024 à 18: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
- 17:2525 mars 2024 à 17: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
- 17:1425 mars 2024 à 17: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
- 16:5925 mars 2024 à 16: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
- 15:2025 mars 2024 à 15: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
- 15:0525 mars 2024 à 15: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
- 12:4525 mars 2024 à 12: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
- 12:2025 mars 2024 à 12:20 diff hist +128 Python : Expressions, Declaration & types d'execution Aucun résumé des modifications Balise : Éditeur visuel
- 12:2025 mars 2024 à 12:20 diff hist +986 Python : Expressions, Declaration & types d'execution Aucun résumé des modifications Balise : Éditeur visuel
- 12:1225 mars 2024 à 12: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
- 18:2822 mars 2024 à 18: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
- 17:4922 mars 2024 à 17:49 diff hist +558 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 17:2022 mars 2024 à 17:20 diff hist +143 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 17:2022 mars 2024 à 17:20 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-19-03.png Aucun résumé des modifications actuelle
- 17:1522 mars 2024 à 17:15 diff hist +247 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 17:1222 mars 2024 à 17:12 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-12-30.png Aucun résumé des modifications actuelle
- 17:0822 mars 2024 à 17:08 diff hist +111 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 17:0822 mars 2024 à 17:08 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-08-11.png Aucun résumé des modifications actuelle
- 17:0622 mars 2024 à 17:06 diff hist +110 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 17:0622 mars 2024 à 17:06 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-05-47.png Aucun résumé des modifications actuelle
- 17:0422 mars 2024 à 17:04 diff hist +115 Python : Operators Aucun résumé des modifications Balise : Éditeur visuel
- 17:0322 mars 2024 à 17:03 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-03-35.png Aucun résumé des modifications actuelle
- 17:0122 mars 2024 à 17:01 diff hist +115 Python : Operators →Liens Balise : Éditeur visuel
- 17:0022 mars 2024 à 17: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
- 17:0022 mars 2024 à 17:00 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 16-00-06.png Aucun résumé des modifications actuelle
- 16:5822 mars 2024 à 16:58 diff hist +20 N Fichier:Capture d’écran du 2024-03-22 15-58-01.png Aucun résumé des modifications actuelle
- 16:3122 mars 2024 à 16:31 diff hist +97 Python : Les variables Aucun résumé des modifications Balise : Éditeur visuel
- 16:3022 mars 2024 à 16:30 diff hist +16 N Fichier:Capture d’écran du 2024-03-22 15-29-41.png Aucun résumé des modifications actuelle
- 12:5922 mars 2024 à 12: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
- 09:4120 mars 2024 à 09: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
- 17:5819 mars 2024 à 17: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
- 17:5619 mars 2024 à 17: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
- 17:5519 mars 2024 à 17: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
- 17:5419 mars 2024 à 17: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
- 17:5219 mars 2024 à 17: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
- 17:5119 mars 2024 à 17: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
- 17:3719 mars 2024 à 17:37 diff hist +94 N Zerotier : Dossier de configuration Page créée avec « <syntaxhighlight lang="bash"> /var/lib/zerotier-one </syntaxhighlight> Catégorie:Zerotier » Balise : Éditeur visuel
- 17:3619 mars 2024 à 17:36 diff hist +227 N Zerotier : Redémarrage des services controleur Page créée avec « <syntaxhighlight lang="bash"> sudo systemctl restart zerotier-one </syntaxhighlight><syntaxhighlight lang="bash"> sudo systemctl restart ztncui </syntaxhighlight> Catégorie:Zerotier Catégorie:VPN Catégorie:Reseau » Balise : Éditeur visuel
- 17:3519 mars 2024 à 17:35 diff hist +666 N Zerotier : Sortir via un routeur VPN Zerotier Page créée avec « * Créer la route 0.0.0.0/0 dans les routes du réseau Zerotier * Sur la station ajouter la route : <syntaxhighlight lang="bash"> sudo zerotier-cli set <networkId> allowDefault=1 </syntaxhighlight> === Liens === https://zerotier.atlassian.net/wiki/spaces/SD/pages/7110693/Overriding+Default+Route+Full+Tunnel+Mode [https://sensorsiot.github.io/IOTstack/Containers/ZeroTier/#:~:text=Launch%20the%20ZeroTier%20One%20app,on%20%22Enable%20Default%20Route%22. https://se... » Balise : Éditeur visuel
- 17:2819 mars 2024 à 17:28 diff hist +206 N Zerotier : Changement du mtu Page créée avec « Aller dans le dossier "/var/lib/zerotier-one/controller.d/network" Editer le fichier "ID Network.json" et trouver l'emplacement du MTU Catégorie:Zerotier Catégorie:VPN Catégorie:Reseau » Balise : Éditeur visuel
- 17:2519 mars 2024 à 17:25 diff hist +127 N Proxmox : Drivers Virtio Page créée avec « === Liens === https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/ Catégorie:Proxmox Catégorie:Virtio » Balise : Éditeur visuel
- 17:2219 mars 2024 à 17:22 diff hist +784 N Linux : Gestion des routes Page créée avec « === Afficher les routes === <syntaxhighlight lang="bash"> route -n ip route show </syntaxhighlight> === Ajout d'une route simple === <syntaxhighlight lang="bash"> sudo ip route add 10.0.2.0/24 via 192.168.43.223 dev enp0s3 </syntaxhighlight> === Ajout d'une route par défaut === <syntaxhighlight lang="bash"> sudo ip route add default via 192.168.43.1 dev eth0 </syntaxhighlight> === Suppression d'une route par défaut === <syntaxhighlight lang="bash"> sudo ip... » Balise : Éditeur visuel
- 17:1819 mars 2024 à 17:18 diff hist +151 N Linux : Création d'un utilisateur Page créée avec « <syntaxhighlight lang="bash"> useradd -m administrateur passwd administrateur usermod -aG sudo administrateur </syntaxhighlight> Catégorie:Linux » Balise : Éditeur visuel
- 17:1419 mars 2024 à 17:14 diff hist +1 155 N Linux : Redémarrage automatique des services après upgrade Page créée avec « <syntaxhighlight lang="bash"> As others mentioned, the trouble in this case is with the needrestart command, which is part of the apt-get upgrade process in Ubuntu now (specifically 22.04 which is what I am using). By default this is set to "interactive" mode which causes the interruption of scripts. To change this behavior, we can edit the /etc/needrestart/needrestart.conf file, changing the line: #$nrconf{restart} = 'i'; to $nrconf{restart} = 'a'; (if we wa... » Balise : Éditeur visuel
- 17:1019 mars 2024 à 17:10 diff hist +532 N Libreoffice : Menu déroulant Page créée avec « === Liens === [https://blog.shevarezo.fr/post/2020/09/30/comment-creer-liste-deroulante-excel-google-sheets-libreoffice-calc#:~:text=LibreOffice%20Calc,-La%20m%C3%A9thode%20pour&text=Sur%20la%20cellule%20qui%20doit,les%20%C3%A9l%C3%A9ments%20de%20la%20liste. https://blog.shevarezo.fr/post/2020/09/30/comment-creer-liste-deroulante-excel-google-sheets-libreoffice-calc#:~:text=LibreOffice%20Calc,-La%20m%C3%A9thode%20pour&text=Sur%20la%20cellule%20qui%20doit,les%20%... » actuelle Balise : Éditeur visuel
- 17:0819 mars 2024 à 17:08 diff hist +326 N Libreoffice : Définir le point au lieu de la virgule Page créée avec « Dans LibreOffice, va dans le menu Outils > Options, onglet Paramètres Linguistiques > Langues, et décoche "Touche du séparateur de décimales: identique au paramètre de la locale" === Liens === https://linuxfr.org/forums/linux-debutant/posts/libre-office-calc-point-comme-separateur-decimale Catégorie:Libreoffice » actuelle Balise : Éditeur visuel
- 17:0719 mars 2024 à 17:07 diff hist +565 N LibreOffice : Insertion d'une page paysage Page créée avec « Menu Insertion de LibreOffice On clique sur Saut manuel, on coche Saut de page et dans la liste déroulante des Styles, on choisit (plutôt vers le bas) « Paysage ». === Liens === [https://dutailly.net/portrait-paysage-et-libreoffice#:~:text=Menu%20Insertion%20de%20LibreOffice&text=On%20clique%20sur%20Saut%20manuel,le%20bas)%20%C2%AB%20Paysage%20%C2%BB. https://dutailly.net/portrait-paysage-et-libreoffice#:~:text=Menu%20Insertion%20de%20LibreOffice&text=On%20... » actuelle Balise : Éditeur visuel
- 17:0519 mars 2024 à 17:05 diff hist +156 N Linux : Créer une image USB/Iso avec dd Page créée avec « <syntaxhighlight lang="bash"> sudo dd if=/isos/ubuntu-19.04-live-server-amd64.iso of=/dev/sdb bs=1M status=progress </syntaxhighlight> Catégorie:Linux » Balise : Éditeur visuel