Skip to content

Instantly share code, notes, and snippets.

View MindTooth's full-sized avatar
⚙️
...

Birger Johan Nordølum MindTooth

⚙️
...
View GitHub Profile
@niklasfrick
niklasfrick / kuberc
Last active December 22, 2025 23:20
Kubectl user preferences (kuberc)
apiVersion: kubectl.config.k8s.io/v1beta1
kind: Preference
# Default output and behavior
defaults:
- command: get
options:
- name: output
default: wide
- command: delete
@gdesatrigraha
gdesatrigraha / vfio-amd-rx-9070-xt-gpu-passthrough.md
Last active December 11, 2025 00:01
VFIO AMD RX 9070 XT GPU Passthrough
@scottisloud
scottisloud / vivaldi-1pass.sh
Created June 20, 2025 14:06 — forked from kiwimato/vivaldi-1pass.sh
Adds Vivaldi as allowed browsers for 1Password linux app
sudo mkdir /etc/1password
echo vivaldi-bin | sudo tee /etc/1password/custom_allowed_browsers
sudo chown root:root /etc/1password/custom_allowed_browsers
sudo chmod 755 /etc/1password/custom_allowed_browsers
@thesamesam
thesamesam / xz-backdoor.md
Last active December 25, 2025 23:58
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@lobuhi
lobuhi / gist:0e2d761ae0c0d8a8bb11fa20c4aee025
Created February 2, 2024 12:41
Kyverno Validation Policy for CVE-2024-21626
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: disallow-proc-self-fd-workingdir
spec:
validationFailureAction: enforce
background: true
rules:
- name: check-workingDir
match:
@aatizghimire
aatizghimire / XRDP-MultiUser-Installation
Last active November 26, 2025 22:55
This is short tutorial to install XRDP on Ubuntu for multi-user Remote desktop connection.
--------------------------------------------
Xrdp Server (Remote Desktop) Installation:
--------------------------------------------
Tested in Ubuntu 22.04.03 LTS
1. Update Environment
$ sudo apt-get update
$ sudo apt-get upgrade
@nat-418
nat-418 / why-tcl.md
Last active December 27, 2025 05:32
Why Tcl?

Why Tcl?

Introduction

I use [Tcl] as my scripting language of choice, and recently someone asked me why. This article is an attempt to answer that question.

Ousterhout's dichotomy claims that there are two general categories of programming languages:

@kconner
kconner / macOS Internals.md
Last active December 27, 2025 05:31
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@paultheman
paultheman / mac_keyremapping.md
Last active December 6, 2025 01:55
Guide on how to remap Keyboard keys on macOS

Guide on how to remap Keyboard keys on macOS

Update 17.10.2024: macOS 15 no longer requires root privileges for hidutil, you need to add hidutil and Terminal to 'Input Monitoring' in Settings/Privacy & Security tab.

Update 13.04.2024: On macOS 14.2 hidutil requires root privileges.

If you have a mac with an INT (ISO) keyboard you might want to change the ± key to ~. During my research I found that the information on this topic is not at all centralized. I prefer this option because it does not involve installing new software.

With macOS 10.12 Sierra Apple introduced hidutil as a tool to remap keyboard keys. See TN2450.