Discover gists · GitHub
Skip to content

Instantly share code, notes, and snippets.

@sini
sini / host-aspect-settings.md
Last active June 25, 2026 17:00
Typed per-aspect settings in Den — a how-to for giving shared aspects per-host knobs (module-system pattern + the gen-aspects first-class cascade)

Typed per-aspect settings in Den

A how-to for giving shared aspects per-host knobs. If you build configurations with Den (or any dendritic / aspect-oriented Nix setup), this guide shows how to let an aspect expose a few typed values — a disk device id, a kernel optimization target, a BGP AS number — that each host fills in, without forking the aspect.

It is written to be replicated in your own configuration, not just read as a description of one repo. It has two parts:

@alpharez
alpharez / fortiswitch-troubleshooting.md
Last active June 25, 2026 17:00
Fortinet FortiSwitch Troubleshooting Commands

Fortinet FortiSwitch Troubleshooting Commands

This document provides a comprehensive list of useful CLI commands for diagnosing and troubleshooting common issues on Fortinet FortiSwitch devices. These commands are essential for network administrators to quickly identify and resolve problems related to system status, port connectivity, VLANs, stacking, and more.


1. System Information & Status

These commands provide an overview of the FortiSwitch's general health, configuration, and resource utilization.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@GhassenChawati1
GhassenChawati1 / FEDORA SETUP
Last active June 25, 2026 16:59
Fedora macOS Style Setup
@sam016
sam016 / AllGattCharacteristics.java
Last active June 25, 2026 16:59
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");
@fsLeg
fsLeg / get-crates.py
Last active June 25, 2026 16:57
This is a helper script for packaging Rust programs using SlackBuilds. It can generate links to crates, their MD5 hashes, fill a template .info file with crates' links and checksums and vendor pre-downloaded crates for offline building with Cargo
#!/usr/bin/env python3
# Funny enough, this script does everything but actually get crates :D
import json
import requests
import tarfile
import re
from sys import exit, stderr
from hashlib import md5, sha256
@echo off
REM // This batch will help frustrated AMD Ryzen user for being unable to normally use adb fastboot from Windows OS
REM // I found this script on forum, I don't know who is the original creator of this registry hack, thank you very much
REM // Credit belongs to the original creator
REM // Just simply Run as Administrator
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
@jctosta
jctosta / screen_cheatsheet.markdown
Last active June 25, 2026 16:55
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r

HP LaserJet P1102 Drivers for macOS Sequoia

This instructions provides a solution for installing HP LaserJet P1102 drivers on macOS Sequoia (15.0+). The official HP drivers don't install on the latest macOS versions, but with a simple modification to bypass the operating system version check, you can get your printer working again.

Supported Printer Models

  • HP LaserJet P1102
  • HP LaserJet Pro P1102
  • HP LaserJet Pro P1102w