Skip to content

Instantly share code, notes, and snippets.

Olivier Clavel zeitounator

Block or report user

Report or block zeitounator

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 0-docker-compose.yml
---
version: "3.7"
services:
postgres:
image: "postgres:11.0-alpine"
app:
build: .
View 0-inventory - hosts.ini
[k8s_gpu_nodes]
host1
host2
[k8s_cpu_nodes]
host3
host4
@zeitounator
zeitounator / 0 - Create a test container
Last active Oct 26, 2019
Using .bashrc with shell from ansible
View 0 - Create a test container
docker run -d --rm --name test centos:7 bash -c "while true; do sleep 2000; done"
View 1-test-playbook.yml
---
- name: Debug data structure
hosts: localhost
gather_facts: false
vars:
"host1": [
{
"_ref": "record:host/ZG5zLmhvc3QkLl9kZWZhdWx0LnVrLmFjLmJoYW0udGVzdC5zbmF0LWF3eHRlc3Q1:snat-awxtest5.test.com/Internal",
"ipv4addrs": [
View A_test_with_value.yml
---
- name: complex string
hosts: localhost
gather_facts: false
vars:
DATABASE_LISTDELETED_RESOURCEGROUP: my_ressource_group
DATABASE_LISTDELETED_SQLSERVER: my_sql_server
DATABASE_LISTDELETED_QUERY: this is a line of text which mimics an actual query I don't have
View search domain dhcp field with compression
+------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|offset| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |10 |11 |12 |13 |14 |15 |16 |17 |18 |
+------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|data | 7 |'e'|'x'|'a'|'m'|'p'|'l'|'e'| 3 |'c'|'o'|'m'| | 3 |'i'|'p'|'4'|xC0|x00|
+------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|hex | 07| 65| 78| 61| 6d| 70| 6c| 65| 03| 63| 6f| 6d| 00| 03| 69| 70| 34| C0| 00|
+------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| element 1 | element 2 | | element 3 | ^ ^
| domain 1 | domain 2 ! ! |
Pointer indicator-----------------! !
@zeitounator
zeitounator / Ez_Debug_Box.user.js
Created May 30, 2012
Greasemonkey script for ezdebug display in a box
View Ez_Debug_Box.user.js
// ==UserScript==
// @name Ez Debug Box
// @namespace EzDebugBox
// @description Remplace le debug par un bouton en haut à droite qui affiche une lightbox
// @include *
// ==/UserScript==
if (document.getElementById('debug')) {
var debugBoxVisible = false;
var cssDebugBox = "z-index:99; height: 80%; width : 80%; overflow : scroll; position : fixed; top : 0; margin : 10% auto auto 10%; border : 2px solid black; padding : 10px; background: white;";
var lastKeyCode = false;
You can’t perform that action at this time.