Skip to content

Instantly share code, notes, and snippets.

View RalfWenzel's full-sized avatar

Ralf Wenzel RalfWenzel

View GitHub Profile

KQL Coding guidelines

This document does not reflect any official standard, it is intended for team-internal use but may others help also.

Allign your code

  • Place a spaces before and after the '=' character for readability.
  • allign the code using instead of spaces. Keep the '=' character and default values alligned.

bad example

@RalfWenzel
RalfWenzel / AnsibleDebug.md
Last active April 7, 2018 19:54
Howto debug ansible playbooks

Debugging from command line

Display all host variables for a given host as ansible sees them

ansible myHost -i myInventory -m debug -a "var=hostvars[inventory_hostname]"

Display all facts for a given host as ansible sees them

ansible myHost -i myInventory -m setup

@RalfWenzel
RalfWenzel / README.md
Created November 26, 2017 11:37
Managing .NET core 2.0 service apps with systemctl

About systemctl

@RalfWenzel
RalfWenzel / SSH_cheatsheed.md
Last active November 4, 2017 20:45
SSH cheatsheet

ssh client configuration

  • precedence (1st value used): Command-line options, ~/.ssh/config, /etc/ssh/ssh_config
  • Host specific options
Host <myKeyfileHostName>
    HostName <myKeyfileHostNameFQDN>
    User <userName>
    IdentityFile ~/.ssh/<usrName>_id_rsa  
@RalfWenzel
RalfWenzel / README.md
Last active January 8, 2022 17:20
LUA script for HAProxy backend selection

Using LUA script for HAProxy backend selection

Principle / HAProxy features used

  • HAProxy can extract pieces of information known as samples. Samples can be fetched from various sources, for the use-case described herein extraction from HTTP request is required.

  • A sample may then pass through a number of operators known as converters. A converter consumes a sample and produces a new one.

  • HAProxy standard fetches/converters can be extended by writing own fetches/converters in LUA

@RalfWenzel
RalfWenzel / README.md
Last active October 31, 2017 20:33
How to use PoSH-SSH with MS-PowerShell for administrative tasks on remote machines

How to use PoSH-SSH with MS-PowerShell for administrative tasks on remote machines

Executing basic SSH tasks using PoSH-SSH on Windows 10.

Note: PoSH-SSH is no replacement for a standard interactive ssh sessions. Better use products like Putty, MobaXterm or use buildin ssh support of the Windows Subsystem for Linux (WSL). Have a look at the documentation and use-cases below to find out if PoSH-SSH fits your requirements.

Getting started

Prerequisites