View buildAndRun.txt
This file contains 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
$ cat Dockerfile | |
FROM jupyter/scipy-notebook | |
RUN pip install mlflow | |
RUN pip install sklearn | |
USER root | |
RUN apt-get update && apt-get install -y curl | |
# Switch back to jovyan to avoid accidental container runs as root |
View session.txt
This file contains 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
# Note: all names prefixed with `my_` to prevent | |
# any conflicts on my local machine | |
$ docker volume create my_mysql | |
my_mysql | |
$ docker volume create my_mysql_config | |
my_mysql_config | |
$ docker network create my_mysqlnet |
View session.txt
This file contains 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
$ cat docker-compose.yml | |
--- | |
services: | |
sonarqube: | |
image: ${SONAR_IMAGE} | |
command: "-Dsonar.search.javaAdditionalOpts=-Dnode.store.allow_mmap=false" | |
ports: | |
- "9000:9000" | |
$ export SONAR_IMAGE=sonarqube:10.0-developer |
View session.txt
This file contains 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
# Note: this is an exact copy/paste from the question | |
$ cat test.yml | |
- hosts: all | |
name: check patching | |
gather_facts: 'no' | |
tasks: | |
- name: Get list | |
win_shell: >- | |
(New-Object -ComObject | |
Microsoft.Update.Session).CreateupdateSearcher().Search(“IsHidden=0 and |
View session.txt
This file contains 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
$ ls -l testSO.sh | |
-rwxr--r-- 1 olcla users 75 mai 22 11:43 testSO.sh | |
$ cat testSO.sh | |
#! /usr/bin/env bash | |
docker exec testSO bash -c "stat -c '%U' /etc/passwd" | |
$ docker run -d --rm --name testSO ubuntu:latest tail -f /dev/null | |
f3b812df7bb35eafb2f2c2b144280329e9fa90539845861c619a460465badafb |
View session.txt
This file contains 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
$ ansible-galaxy collection install -U openstack.cloud --force -vvv | |
ansible-galaxy [core 2.14.2] | |
config file = None | |
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/user/.local/lib/python3.9/site-packages/ansible | |
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections | |
executable location = /home/user/.local/bin/ansible-galaxy | |
python version = 3.9.5 (default, Nov 23 2021, 15:27:38) [GCC 9.3.0] (/usr/bin/python3.9) | |
jinja version = 3.1.2 | |
libyaml = True |
View gist:0e7a0320fbd157b47ea51b1d3397453e
This file contains 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
$ cat inventory.yml | |
--- | |
cloud1: | |
vars: | |
ansible_user: specific_service_user | |
hosts: | |
host1: | |
host2: | |
cloud2: | |
vars: |
View session.txt
This file contains 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
$ cat testes.py | |
from elasticsearch import Elasticsearch, helpers | |
es = Elasticsearch( | |
['http://localhost:9200'], | |
basic_auth=('elastic', 'my_pass') | |
) | |
print(es.ping()) | |
print(es.info()) |
View session.txt
This file contains 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
$ tree | |
. | |
├── inventories | |
│ └── demo | |
│ ├── hosts | |
│ └── host_vars | |
│ ├── CEASF-RTR.yml | |
│ └── cowfm-311-core.yml | |
└── playbook.yml |
View session.txt
This file contains 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
$ tree | |
. | |
├── inventories | |
│ └── demo | |
│ ├── group_vars | |
│ │ └── my_group.yml | |
│ └── hosts.yml | |
├── playbook.yml | |
└── templates | |
└── my_template.html.j2 |
NewerOlder