Skip to content

Instantly share code, notes, and snippets.

@assarbad
assarbad / autossh-with-systemd-hardening-usage.md
Last active August 31, 2026 04:22
Strictly hardened autossh systemd unit template for port-forwarding

How to "install" the enclosed unit template (all require superuser permissions)

  1. place the autossh@.service file in /etc/systemd/system
  2. enable an instance -- suppose your remote host is called frodo then you might run: systemctl enable autossh@frodo (do not use --now here!); IPv4 addresses also worked for me
  3. now it is time to create an override specific to the instance, e.g. : systemctl edit autossh@frodo.service and adjust the following bunch of settings (commented out in the main unit template) like so:
    [Service]
    Environment=REMOTE_PORT=1022
    Environment=TARGET_USER=username
    Environment=TARGET_HOST=frodo.example.com
    
@xen0n
xen0n / check-new-world.tiny.s
Last active August 31, 2026 04:19
Tiny helper checking for LoongArch new world UAPI
# SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#
# how to build this:
#
# $ as -o check-new-world.tiny.o check-new-world.tiny.s
# $ ld check-new-world.tiny.o -o check-new-world.tiny.tmp
# $ objcopy -O binary --only-section=.blob ./check-new-world.tiny.tmp ./check-new-world.tiny
.section ".blob", "aw", @progbits
@denilsonsa
denilsonsa / List of alternative launchers for Android TV.md
Last active August 31, 2026 04:17
List of alternative launchers for Android TV

This was originally shared on reddit, but for some reason I cannot update it anymore. I've now mirrored it as this GitHub Gist.

List of alternative launchers for Android TV

For whatever reason, it's really difficult to discover alternative launchers for Android TV. Sure, you can find a couple of them, but there are so many terrible results that you will end up wasting quite some time.

Thus, I've compiled this list of alternative Android TV launchers. It's not comprehensive (I'm certain I missed some, please suggest them in comments); I'm not endorsing any particular one; and I have not tried all of them. Some are free, some are paid. Some contain ads. Some contain IAP (in-app purchases). Some require too many intrusive permissions.


@danidiaz
danidiaz / netrw.txt
Created October 7, 2016 20:57
Vim's netrw commands.
--- ----------------- ----
Map Quick Explanation Link
--- ----------------- ----
< <F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file |netrw-cr|
<del> Netrw will attempt to remove the file/directory |netrw-del|
<c-h> Edit file hiding list |netrw-ctrl-h|
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l|
<c-r> Browse using a gvim server |netrw-ctrl-r|
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab|
@SahandMalaei
SahandMalaei / typewriter.css
Created August 29, 2026 11:53
Obsidian E-Ink CSS Snippet
/* =========================================================
OBSIDIAN E-INK THEME
========================================================= */
/* ---------------------------------------------------------
CORE COLORS
--------------------------------------------------------- */
body {

Setting Up Windows 11 Virtual Machine on Fedora Silverblue

This guide walks you through creating a high-performance Windows 11 virtual machine (VM) on Fedora Silverblue using GPU passthrough technology. This setup allows you to run Windows applications that require dedicated graphics performance while keeping your primary system secure with Fedora Silverblue.

What is GPU Passthrough?

GPU passthrough allows your virtual machine to use your dedicated graphics card directly, providing near-native gaming and graphics performance in Windows while running on Linux. This is different from typical virtualization where graphics performance is limited.

Key terms you'll encounter:

@datvm
datvm / ConnectAdbWireless.MD
Last active August 31, 2026 04:04
Commands for connecting to Android phone over Wifi (Wireless Debugging) with ADB

Setup the Phone

To enable developer options, tap the Build Number option 7 times. You can find this option in one of the following locations, depending on your Android version:

Android 9 (API level 28) and higher: Settings > About Phone > Build Number

  • Enable Wireless Debugging: Settings > search Wireless Debugging.
*&---------------------------------------------------------------------*
*& Report UI5_REPOSITORY_LOAD
*&
*&---------------------------------------------------------------------*
*&
*& This report implements the up- and download of a SAPUI5 application
*& into an UI5 Repository.
*&
*& Furthermore it is possible to delete a UI5 Repository
*&

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.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active August 31, 2026 03:48
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest