Skip to content

Instantly share code, notes, and snippets.

@xandout
xandout / README.md
Last active October 17, 2024 07:54
Kubernetes DaemonSet that enables a direct shell on each Node using SSH to localhost

Getting a shell on each node

I run several K8S cluster on EKS and by default do not setup inbound SSH to the nodes. Sometimes I need to get into each node to check things or run a one-off tool.

Rather than update my terraform, rebuild the launch templates and redeploy brand new nodes, I decided to use kubernetes to access each node directly.

Alternative option

https://github.com/alexei-led/nsenter

@svpino
svpino / twitter-unfollow.ipynb
Created August 11, 2020 18:58
twitter-unfollow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fizzyade
fizzyade / nvidiaheadend.md
Last active February 27, 2024 22:43
tvheadend container + nvidia ffmpeg under Unraid

NVIDIA+TVHEADEND+UNRAID+ACCELERATED FFMPEG

I recently had a need to get hardware accelerated ffmpeg running on tvheaded under unraid, I eventually achieved this with a few tricks, here are my notes on what I did to achieve this.

First up, Unraid NVIDIA support

Install the Nvidia plugin under Unraid, this installs a custom kernel complete with the nidia drivers and docker runtime to support thiese.

Next install a hardware accelerated FFMPEG

@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active April 19, 2025 14:37
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@chanjarster
chanjarster / tomcat-dashboard-for-prometheus-operator.json
Last active November 19, 2020 03:42
Grafana dashboard - Tomcat dashboard (for Prometheus Operator)
{
"__inputs": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.2.4"
},
{
@chanjarster
chanjarster / jvm-dashboard-for-prometheus-operator.json
Last active May 10, 2021 02:36
Grafana dashboard - JVM dashboard (for Prometheus Operator)
{
"__inputs": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.2.4"
},
{
@chanjarster
chanjarster / jvm-dashboard.json
Last active September 4, 2024 03:08
Grafana dashboard - JVM dashboard
{
"__inputs": [
{
"name": "VAR_JOB",
"type": "constant",
"label": "job",
"value": "java",
"description": ""
}
],
@chanjarster
chanjarster / tomcat-dashboard.json
Last active July 2, 2024 11:59
Grafana dashboard - tomcat dashboard
{
"__inputs": [
{
"name": "VAR_JOB",
"type": "constant",
"label": "Job",
"value": "java",
"description": ""
}
],
@gea0
gea0 / arch-rpi-64-full-disk-encryption-ssh-unlock.md
Last active March 24, 2024 14:36
Tutorial for installing a 64-bit Arch Linux ARM system on the Raspberry Pi 3B+, with an encrypted root filesystem, and the option to remotely unlock it via a pre-boot SSH daemon.

Arch Linux ARM 64 on Raspberry Pi 3 B+ With Full Disk Encryption And SSH Unlock: 2018 Edition

There are multiple ways to get a full disk encrypted arch linux system on raspberry. In this tutorial, we will install a 64-bit arch linux armv8 system, using dropbear as ssh server for remote pre-boot unlocking of the root filesystem. However, it will still be possible to unlock and use the pi as usual, with a keyboard and monitor. We will also create an unencrypted partition in the installation process, usable as a rescue system.

Differences to the 32-bit arch linux arm version:

  • probably better performance
  • can run 64-bit software
  • comes without the proprietary video-driver blobs
@mipimipi
mipimipi / TVHeadend_RPI2_Arch_Linux.md
Last active September 24, 2020 12:05
Setting up a TVHeadend server on a Raspbi with Arch Linux

TVHeadend Server on a Raspberry Pi 2 with Arch Linux

This post has been moved here.