Skip to content

Instantly share code, notes, and snippets.

View maur1th's full-sized avatar

Thomas Maurin maur1th

View GitHub Profile
[jenkins@jenkins-0bf574cc0a3ed48ed stacks]$ TF_LOG=debug terraform apply
2020/10/14 16:03:48 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/10/14 16:03:48 [INFO] Terraform version: 0.13.4
2020/10/14 16:03:48 [INFO] Go runtime version: go1.14.7
2020/10/14 16:03:48 [INFO] CLI args: []string{"/usr/local/tfenv/versions/0.13.4/terraform", "apply"}
2020/10/14 16:03:48 [DEBUG] Attempting to open CLI config file: /var/lib/jenkins/.terraformrc
2020/10/14 16:03:48 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/10/14 16:03:48 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2019/05/09 17:42:06 [INFO] Terraform version: 0.12.0 beta2
2019/05/09 17:42:06 [INFO] Go runtime version: go1.11.5
2019/05/09 17:42:06 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/05/09 17:42:06 [DEBUG] Attempting to open CLI config file: /Users/tm/.terraformrc
2019/05/09 17:42:06 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/05/09 17:42:06 [INFO] CLI command args: []string{"apply"}
2019/05/09 17:42:06 [DEBUG] New state was assigned lineage "151e0db7-ca07-d059-0859-20af2999d7b3"
2019/05/09 17:42:06 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2019/05/09 17:42:06 [TRACE] Meta.Backend: instantiated backend of type <nil>
2019/05/09 17:42:06 [DEBUG] checking for provider in "."
▶ python3
Python 3.6.4 (default, Jan 6 2018, 11:51:15)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import calendar
>>> import time
>>> calendar.timegm(time.gmtime())
1518612751
>>> import math
>>> math.log(1507037197339) / math.log(10)
#!/usr/bin/env python3
import json
import os
import os.path
import sys
import urllib.request
from subprocess import run, PIPE
import shutil
SRC = 'https://s3-eu-west-1.amazonaws.com/maurin-d2si/formation-devops/credentials.tgz'

Keybase proof

I hereby claim:

  • I am maur1th on github.
  • I am maur1th (https://keybase.io/maur1th) on keybase.
  • I have a public key whose fingerprint is 35B9 8F21 9F1C 50C9 649E 911F 6D13 A962 2736 F738

To claim this, I am signing this object:

>>> s = "Roses are red. Violets are blue.".split(".")
>>> s
['Roses are red', ' Violets are blue', '']
>>> len(s)
3
>>>
>>> # Pour faire plus clair :
... # Si ta str ne comprend qu'un caractère et que ce caractère est ton séparateur, alors tu obtiens deux ensembles (ici des str) vides
... ".".split(".")
['', '']
# Check docker install
docker version
# check docker first run hello world
docker run hello-world
# Répertoire de travail
mkdir oxademo ; cd oxademo
# hello.php
const f = () => {
return {
process() {
return Promise.resolve().then(this.other); // Cannot read property 'last' of undefined
return Promise.resolve().then(this.other.bind(this)); // WORKS
return Promise.resolve().then( () => this.other() ); // WORKS
},
other() {
return this.last();
},