Skip to content

Instantly share code, notes, and snippets.

@stephenlauck
stephenlauck / mt_viki_remote
Created September 14, 2025 01:43 — forked from mharsch/mt_viki_remote
Arduino replaces MT-VIKI KVM remote module for changing / polling selected KVM input
#include <math.h>
// connected to 'D+' pin on mini USB
const int input_pin = 11;
// connected to 'D-' pin on mini USB
const int output_pin = 12;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
https://github.com/oddmario/NVIDIA-Ubuntu-Driver-Guide?tab=readme-ov-file
# Ubuntu 22.04.5
Linux spellcaster-Oryx-Pro 6.8.0-60-generic #63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 22 19:00:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
https://documentation.ubuntu.com/server/how-to/graphics/install-nvidia-drivers/index.html
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=22.04&target_type=deb_local
@stephenlauck
stephenlauck / burvju.rsc
Last active December 17, 2024 07:24
Spellcaster spell to configure Mikrotik hEX PoE
:put "Generated by Spellcaster ☱"
:put "© 2023, Distinguished LLC. All rights reserved."
:put ("Mikrotik " . [system resource get version] . " Configuration ")
:put ""
:local converged "";
:for LoopCount from=1 to=10 do={
:set $converged ($converged . "☱ ")
}
@stephenlauck
stephenlauck / silk-notes.md
Last active May 2, 2024 06:54
silk notes

build silk flex

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://away.spellcaster.sh/spells/silk-azure?format=powershell'))

{
"Name": "Silk Flex Role",
"IsCustom": true,
"Description": "Silk Flex Resource Group Permissions",
"Actions": [
"Microsoft.Compute/virtualMachines/performMaintenance/action",
"Microsoft.Compute/images/read",
"Microsoft.Compute/disks/read",
"Microsoft.Compute/images/write",
"Microsoft.Compute/disks/write",
@stephenlauck
stephenlauck / azure-spellcaster.ps1
Last active May 1, 2024 20:38
Spellcaster Azure Example
`Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://away.spellcaster.sh/spells/silk-flex-azure?format=powershell'))`
@stephenlauck
stephenlauck / remoteManagementDarwin.md
Last active April 3, 2024 04:26
Commands to turn on remote management on Darwin mac.
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent -console


sudo -S /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -activate -access -on -privs -all -allowaccessfor -allusers -restart -agent

https://github.com/utmapp/UTM/issues/5484
/Users/stephen/Library/Containers/com.utmapp.UTM/Data/Documents/macOS.utm/Data
@stephenlauck
stephenlauck / cilium-ippool.yaml
Last active October 29, 2023 02:04
Cilium ippool
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: "podinfo-pool"
spec:
cidrs:
- cidr: "172.16.0.0/24"
@stephenlauck
stephenlauck / podinfo-ingress.yaml
Created October 29, 2023 02:02
Ingress for podinfo
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: basic-ingress
namespace: default
spec:
ingressClassName: cilium
rules:
- http:
paths: