Skip to content

Instantly share code, notes, and snippets.

View rmlandvreugd's full-sized avatar

R. Mathieu Landvreugd rmlandvreugd

View GitHub Profile
@ANRCorleone
ANRCorleone / readme.txt
Last active March 25, 2025 08:11 — forked from krisalyssa/readme.txt
Ubuntu 22.04 + Hyper V + Enhanced Session mode + XRDP PulseAudio
Credits
# https://c-nergy.be/blog/?p=13655
# https://askubuntu.com/questions/844245/how-to-compile-latest-pulseaudio-with-webrtc-in-ubuntu-16-04
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list
# https://unix.stackexchange.com/questions/65167/enable-udev-and-speex-support-for-pulseaudio
# https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users
# https://gist.github.com/rkttu/35ecab5604c9ddc356b0af4644d5a226
# Installation and Enhanced session
# follow steps on the post below, I installed Ubuntu 22.04 on a Windows 11 machine
@bpradipt
bpradipt / ocp410-params.yaml
Last active March 17, 2023 11:10
kcli params for deploying OpenShift 4.10
# Cluster domain
domain: test410.com
# Cluster name
cluster: test
# RHCOS image name in the libvirt storage pool
# You can leave it empty for kcli to download and use the release specific image
# image:
imagecontentsources: []
mdns: True
@sts10
sts10 / rust-command-line-utilities.markdown
Last active April 1, 2025 12:32
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@jwkenney
jwkenney / users.fact
Created December 10, 2021 07:28
Custom Ansible fact for local Linux users
#!/usr/bin/env bash
# Requires Bash v4+
# Gathers Ansible facts for local Linux users from /etc/passwd, and optionally /etc/shadow.
# Place this under /etc/ansible/facts.d/ on your remote hosts,
# and make it executable. Ansible will save user info under the 'ansible_local' fact,
# whenever a playbook gathers facts.
# You can toggle whether to also include password expiration data from /etc/shadow.
# THIS REQUIRES ROOT PRIVILEGES TO WORK, or else empty / '0' results will be returned.
gather_shadow=true
@slavistan
slavistan / cuda-ready-archlinux-for-wsl2.md
Last active January 5, 2025 18:14
CUDA-ready Archlinux for WSL2

This is a brief guide on how to install Archlinux as a WSL2 distribution and how to set up CUDA afterwards.

As of late, Window's WSL2 offers GPU passthrough from WSL2/Linux to Windows for NVidia graphics cards which allows to run (and develop) CUDA-based applications on the WSL2/Linux-side with almost native performance. Unfortunately, the official guides for the CUDA setup for WSL2/Linux are predominantly Ubuntu-specific. Here's to you, Arch!

1. Install Archlinux

  1. Make sure that your Windows meets the dependencies and that your WSL2 is set up. See these instructions.

Archlinux is not among the default distributions available for WSL2. We'll install it from a tarball instead, a functionality offered natively by the WSL.

@Nimamoh
Nimamoh / win-gpg-agent-relay.sh
Last active August 31, 2022 06:34
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 August 23, 2022 06:24
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"