Skip to content

Instantly share code, notes, and snippets.

View jseguillon's full-sized avatar

Joel Seguillon jseguillon

View GitHub Profile
@jseguillon
jseguillon / toto.py
Created April 2, 2023 16:58
toto.py
system="""You are an Ansible expert. You produce tasks according to given templates and user challenge.
You answer only python object, with no explanations, comments or code block.
# tpl 1
[ { 'name': '', 'shell': { 'cmd': '' } } ]
# tpl2
...
# Answer python object:"""
@jseguillon
jseguillon / discussion.md
Created March 21, 2023 20:49
Kubernetes bot log: add istio support

user > deploie nginx

expert > Très bien, voici votre yaml:

---
apiVersion: v1
kind: Namespace
metadata:
  name: nginx-namespace
@jseguillon
jseguillon / 00 - virtctl console
Last active July 11, 2022 19:00
non ok molecule-kubevirt action
Starting virtctl console
Script started, file is typescript
Successfully connected to instance console. The escape sequence is ^]
[ 0.000000] Linux version 5.6.6-300.fc32.x86_64 (mockbuild@bkernel03.phx2.fedoraproject.org) (gcc version 10.0.1 20200328 (Red Hat 10.0.1-0.11) (GCC)) #1 SMP Tue Apr 21 13:44:19 UTC 2020
[ 0.000000] Command line: BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.6.6-300.fc32.x86_64 root=UUID=d1b37ed4-3bbb-40b2-a6ba-f377f0c90217 ro no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
@jseguillon
jseguillon / 00 - virtctl console
Last active July 11, 2022 18:53
last ok molecule-kubevirt action
Starting virtctl console
Script started, file is typescript
Successfully connected to instance console. The escape sequence is ^]
[ 0.000000] Linux version 5.6.6-300.fc32.x86_64 (mockbuild@bkernel03.phx2.fedoraproject.org) (gcc version 10.0.1 20200328 (Red Hat 10.0.1-0.11) (GCC)) #1 SMP Tue Apr 21 13:44:19 UTC 2020
[ 0.000000] Command line: BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.6.6-300.fc32.x86_64 root=UUID=d1b37ed4-3bbb-40b2-a6ba-f377f0c90217 ro no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
==> json logs <==
{"level":"debug","ts":"2021-12-20T19:08:48.053Z","caller":"mvcc/index.go:214","msg":"some debug"}
{"level":"info","ts":"2021-12-20T19:03:48.045Z","caller":"mvcc/index.go:214","msg":"maybe be telling something is ok"}
{"level":"warning","ts":"2021-12-20T19:03:48.046Z","caller":"mvcc/kvstore_compaction.go:57","msg":"something to notice maybe a failure"}
{"level":"error","ts":"2021-12-20T19:08:48.053Z","caller":"mvcc/index.go:214","msg":"a problem because something failed"}
==> go logs <==
I0103 15:41:04.984104 10819 main.go:278] may indicate something is now running
W0103 15:41:06.218155 10819 main.go:130] maybe caused by some xxxBackOff
@jseguillon
jseguillon / 📦.bash
Created September 1, 2021 07:34
bashrodinger
alias 🔬="bash -c '\
touch 📦; \
chmod u+w 📦; chmod u-r 📦; \
(while true; \
do \
[ \$(shuf -i 0-1 -n 1) == 0 ] && \
echo 🐱💣 > 📦 \
|| echo 💀💥 > 📦 ; \
sleep 0.1; \
done) &\
@jseguillon
jseguillon / 00-README.txt
Last active February 8, 2021 20:56
Molecule : from docker to kubevirt
goto venv : pip install
curl + patch apply
re-install deps
create sa
launch test pod
ssh
launch test
@jseguillon
jseguillon / molecule-pod.yaml
Last active January 24, 2021 22:03
molecule kubevirt - pod
---
apiVersion: v1
kind: Pod
metadata:
name: molecule
labels:
app: molecule
spec:
serviceAccountName: molecule-kubevirt
@jseguillon
jseguillon / molecule.yml
Created January 24, 2021 21:45
molecule kubevirt - molecule.yml
# molecule/default/molecule.yml
driver:
name: kubevirt
platforms:
- name: instance
image: "${MOLECULE_DISTRO:-quay.io/jseguillon/kubevirt-images:centos-7-x86_64-genericcloud-2009}"