Skip to content

Instantly share code, notes, and snippets.

View rmlandvreugd's full-sized avatar

R. Mathieu Landvreugd rmlandvreugd

View GitHub Profile
@Nimamoh
Nimamoh / win-gpg-agent-relay.sh
Last active April 7, 2025 23:56
win-gpg-agent-relay
#!/usr/bin/env bash
GNUPGHOME="$HOME/.gnupg"
PIDFILE="$GNUPGHOME/win-gpg-agent-relay.pid"
LOGFILE="$GNUPGHOME/win-gpg-agent-relay.log"
is_pid_running() {
if [[ -z "$1" ]]; then
return 1
fi
@MatMercer
MatMercer / wsl-vpn-fix.sh
Last active April 5, 2025 02:20
Fix WSL 2 DNS resolution when connected to Cisco AnyConnect VPN
#!/bin/bash
#--------------------------------------------------------------------------------#
# #
# Fix WSL DNS resolution with Cisco AnyConnect #
# #
# ! Don't forget to set this configuration in /etc/wsl.conf: #
# [network] #
# generateResolvConf = false #
# #
# Based on: #
# Source: https://gist.github.com/e9ebcaa301c95986fe7bd83b0ee079a0
######################################################################################
# Applying Kubernetes Policies On Infra And Apps By Combining Kyverno And Crossplane #
# https://youtu.be/PVjaJwEJ5mQ #
######################################################################################
# References:
# - Crossplane - GitOps-based Infrastructure as Code through Kubernetes API: https://youtu.be/n8KjVmuHm7A
# - How To Shift Left Infrastructure Management Using Crossplane Composites: https://youtu.be/AtbS1u2j7po
@apollo13
apollo13 / traefik.nomad
Last active January 6, 2025 03:51
Traefik 2.5 with Consul Connect on Nomad
# Simple example to deploy traefik with consul connect enabled.
# For simplicity the job includes traefik as well as the backend service.
# Please note that traefik currently only supports connect for HTTP.
job "traefik-consul-connect-demo" {
datacenters = ["dc1"]
group "edge" {
network {
mode = "bridge"
@a1994sc
a1994sc / s3.yml
Created July 19, 2021 17:42
MinIO docker Swarm Traefik setup
version: '3.7'
services:
minio1:
image: minio/minio:latest
hostname: minio1
volumes:
- /mnt/drive/minio:/export
networks:
- proxy
@cyrenity
cyrenity / OpenvSwitch-Faucet-Lab1.png
Last active April 27, 2025 11:01
SDN using Open vSwitch and KVM
OpenvSwitch-Faucet-Lab1.png
@dims
dims / README.md
Last active September 5, 2025 09:01
Kubernetes Resources
@tashian
tashian / step-ca-launch.sh
Last active July 15, 2024 18:59
Install & launch step-ca in AWS on a variety of Linux distros
#!/bin/bash
CA_NAME="Tiny"
ROOT_KEY_PASSWORD="smallsteplabs"
EMAIL="[email protected]"
if [ -f /etc/os-release ]; then
# freedesktop.org and systemd
. /etc/os-release
OS=$NAME
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@ffund
ffund / multicast-router-install.sh
Last active November 24, 2021 10:32
FRR multicast setup
curl -s https://deb.frrouting.org/frr/keys.asc | sudo apt-key add -
echo deb https://deb.frrouting.org/frr $(lsb_release -s -c) frr-stable | sudo tee -a /etc/apt/sources.list.d/frr.list
sudo apt update
sudo apt -y install frr frr-pythontools nload
sudo sed -i 's/pimd=no/pimd=yes/g' /etc/frr/daemons
sudo sed -i 's/ospfd=no/ospfd=yes/g' /etc/frr/daemons
sudo systemctl restart frr.service