Skip to content

Instantly share code, notes, and snippets.

View Drewlius's full-sized avatar
💭
Where did this all go wrong?

Drew Drewlius

💭
Where did this all go wrong?
View GitHub Profile
@Drewlius
Drewlius / garuda-health
Last active July 17, 2026 19:37
Remove BTRFS and Snapper notifications from garuda-health on non BTRFS Garuda Linux installs file belongs in /usr/bin/garuda-health
#!/usr/bin/env python3
import filecmp
import os
from pathlib import Path
import pty
import re
import sys
import subprocess
import argparse
@Drewlius
Drewlius / set-gpu-wattage.sh
Created August 1, 2026 15:13
NVIDIA-SMI interact-able to adjust GPU power limit on the fly
#!/bin/bash
printf "Set Temporary NVIDIA GPU Power Limit\n"
read -p "Enter wattage (RTX 5090 range: 400-600): " WATTS
if sudo nvidia-smi -pl "$WATTS"; then
printf "GPU power limit set to %s W.\n" "$WATTS"
else
printf "Error: NVIDIA rejected the requested power limit.\n"
exit 1
fi
@Drewlius
Drewlius / settings.json
Last active August 27, 2026 05:39
Remove MicroSlop Copilot VSCode Integration.
{
"github.copilot.enable": {
"*": false
},
"workbench.activityBar.visible": true,
"github.copilot.chat.localeOverride": "en",
"workbench.view.extension.copilot-chat": false,
"chat.enabled": false,
"github.copilot-chat.experimental.enableCodeEditor": false,
"github.copilot-chat.experimental.enableChat": false
@Drewlius
Drewlius / HVAC-Maintenance-Report.html
Created September 7, 2026 01:42
HVAC Maintenance Report Template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HVAC Maintenance Report</title>
<style>
:root { --ink:#15252d; --muted:#5d6c73; --line:#ccd5d8; --paper:#fff; --wash:#f2f6f6; --blue:#176b87; --good:#20845a; --watch:#d89b18; --action:#c34b42; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:#dfe7e8; font:14px/1.4 Arial, Helvetica, sans-serif; }

Using with Fish Shell


Conda's installer by default writes the init block to the ~/.bashrc or ~/.bash_profile by default - not fish's config. So fish never sources conda and it is therefor unavailable from the shell even if you restart the shell.

To solve this you can source where the conda package was installed. For me this time. it was installed to $HOME/miniconda3/bin this may not be the same every time so verify where it was installed. Here is a potential way to find it.Ls ~/miniconda3/bin/conda 2>/dev/null || ls ~/miniconda3/condabin/conda 2>/dev/null || find /home/slippy -maxdepth 4 -name conda -type f 2>/dev/null and run the executable ./miniconda3/bin/conda init fish

First, install arch-install-scripts:

sudo pacman -S --needed arch-install-scripts

Secondly, mount your partitions in all the internal hard drives.

Thirdly, generate and validate your config by piping it out to stdout:

###NVENC###
ffmpeg -i input.mp4 \
-c:v hevc_nvenc \
-preset p7 \
-cq 18 \
-b:v 0 \
-pix_fmt yuv420p \
output.mp4
###FAST+EXCELLENT###
Run This to install grub with ID=Garuda (--force may be specified)
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Garuda
Bypass warning with:
sudo touch /etc/garuda/garuda-health/bypass-wrong-bootloader-check
---
title: "fscrypt implementation"
source: ""
author:
- ""
published:
created: 2026-07-15
description: "Search the Web. Privately. Truly useful results, AI-powered answers, & more. All from an independent index. No profiling, no bias, no Big Tech."
tags:
- "clippings"

title: "Trace a Listening Port to an Application" tags:

  • linux
  • networking
  • troubleshooting
  • how-to aliases:
  • Port to Process Mapping created: 2026-07-03