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
a = '''a = ''{0}'' # /\ | |
# /\/\ | |
def sierp(x): # /\ /\ | |
if x == 1: # /\/\/\/\ | |
yield '/%c' % 92 # /\ /\ | |
else: # /\/\ /\/\ | |
for i in sierp(x-1): # /\ /\ /\ /\ | |
yield i.center(2**x) # /\/\/\/\/\/\/\/\ | |
for i in sierp(x-1): # /\ /\ | |
yield i+i # /\/\ /\/\ |
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
import random | |
import sys | |
def chromosome_initial(nb_genes=12, taille_gene=4): | |
chromosome ="" | |
for i in range(nb_genes): | |
for j in range(taille_gene): | |
chromosome += str(random.randint(0,1)) | |
return chromosome |
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
:: Procéder à l’installation ? [O/n] | |
(84/84) vérification des clés dans le trousseau [##############################] 100% | |
(84/84) vérification de l’intégrité des paquets [##############################] 100% | |
(84/84) chargement des fichiers des paquets [##############################] 100% | |
(84/84) analyse des conflits entre fichiers [##############################] 100% | |
erreur : la validation de la transaction a échoué (conflit de fichiers) | |
pyqt4-common : /usr/bin/pylupdate4 est déjà présent dans le système de fichiers | |
pyqt4-common : /usr/bin/pyrcc4 est déjà présent dans le système de fichiers | |
pyqt4-common : /usr/share/qt4/qsci/api/python/PyQt4.api est déjà présent dans le système de fichiers | |
python2-pyqt4 : /usr/bin/python2-pyuic4 est déjà présent dans le système de fichiers |
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
[root(4)netmonk:plonky]# LC_ALL=C pacman -Suy | |
:: Synchronizing package databases... | |
core is up to date | |
extra 1743.5 KiB 1030K/s 00:02 [##############################] 100% | |
community 2.3 MiB 1034K/s 00:02 [##############################] 100% | |
:: Starting full system upgrade... | |
:: Replace polkit-qt with extra/polkit-qt4? [Y/n] y | |
resolving dependencies... | |
looking for inter-conflicts... |
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
https://www.ditchthecarbs.com/keto-waffles/ |
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
--- | |
- name: Collect primary rebond server sshd keys files | |
slurp: src={{ item }} | |
with_items: | |
- /etc/ssh/ssh_host_rsa_key.pub | |
- /etc/ssh/ssh_host_rsa_key | |
- /etc/ssh/ssh_host_ecdsa_key.pub | |
- /etc/ssh/ssh_host_ecdsa_key | |
- /etc/ssh/ssh_host_ed25519_key.pub |
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
- name: bddeploy | Importing SAE sql schemes | |
#delegate_to: "{{ ansible_ssh_host }}" | |
mysql_db: | |
state: import | |
name: "{{ dbname_tango }}" | |
login_host: "{{ dbhost_tango }}" | |
login_user: "{{ dbadmin }}" | |
login_password: "{{ dbadminpassword }}" | |
target: "{{app_dir }}/{{ release_name}}/sql/{{ item }}" | |
with_items: "{{ lookup('file', '{{ app_dir }}/{{ release_name }}/sql/list.sae_full.scripts').splitlines() }}" |
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
- name: bddeploy | Creating release folder | |
file: | |
path: "{{ item }}" | |
owner: "{{ appuser }}" | |
state: directory | |
mode: 0744 | |
with_items: | |
- "{{ app_dir}}/{{ release_name}}" | |
# on telecharge l'archive tango |
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
- debug: | |
msg: dbname of {{ inventory_hostname }} is {{ dbname_tango}} | |
# au préalable il faut un endroit pour recevoir l'archive tango | |
- name: bddeploy | Creating release folder | |
file: | |
path: "{{ item }}" | |
owner: "{{ appuser }}" | |
state: directory | |
mode: 0744 | |
with_items: |
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
--- | |
#ce role sert à créer les bases de données tango | |
- debug: | |
msg: dbname of {{ inventory_hostname }} is {{ dbname_tango}} | |
# au préalable il faut un endroit pour recevoir l'archive tango | |
- name: bddeploy | Creating release folder | |
file: | |
path: "{{ item }}" |
OlderNewer