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 |
# 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 |
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.
#!/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 |
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!
- 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.
#!/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 |
#!/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 |
# 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" |