Skip to content

Instantly share code, notes, and snippets.

View zeitounator's full-sized avatar

Olivier Clavel zeitounator

View GitHub Profile
@zeitounator
zeitounator / Ez_Debug_Box.user.js
Created May 30, 2012 14:43
Greasemonkey script for ezdebug display in a box
// ==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;
+------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|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-----------------! !
---
- 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
---
- name: Debug data structure
hosts: localhost
gather_facts: false
vars:
"host1": [
{
"_ref": "record:host/ZG5zLmhvc3QkLl9kZWZhdWx0LnVrLmFjLmJoYW0udGVzdC5zbmF0LWF3eHRlc3Q1:snat-awxtest5.test.com/Internal",
"ipv4addrs": [
@zeitounator
zeitounator / 0 - Create a test container
Last active February 2, 2023 18:31
Using .bashrc with shell from ansible
docker run -d --rm --name test centos:7 bash -c "while true; do sleep 2000; done"
[k8s_gpu_nodes]
host1
host2
[k8s_cpu_nodes]
host3
host4
---
version: "3.7"
services:
postgres:
image: "postgres:11.0-alpine"
app:
build: .
$ cat test.yaml
---
- hosts: localhost
gather_facts: false
vars:
cache_mgmt:
dev_web:
backend_name: www_http_be
backend_hosts: dev_www
$ cat /tmp/test.yml
---
- hosts: localhost
gather_facts: false
vars:
with_test: |-
echo username cisco privilege 15 secret 5 \$1\$..
echo username test privilege 15 secret 5 \$1\$..
without_test: |-
---------------------------------------------------
$ tree
.
├── docker-compose.yml
└── docker-entrypoint-initdb.d
└── init_my_db.sql
---------------------------------------------------
$ cat docker-entrypoint-initdb.d/init_my_db.sql
use pfmc;