Skip to content

Instantly share code, notes, and snippets.

View Qyriad's full-sized avatar

Qyriad Qyriad

View GitHub Profile
@0xdevalias
0xdevalias / beeper-custom-theme-styles.md
Last active July 12, 2026 01:10
Custom themes/CSS styling hacks/overrides for Beeper (universal chat app aggregator, built on top of matrix)
@Grissess
Grissess / README.md
Created January 4, 2023 02:52
Streaming the screen [as a camera] under Wayland

Preparation

Before beginning, you will need:

  • v4l2loopback, a Linux kernel module that, like aloop, creates a loopback device that can be seen as a camera;
  • gstreamer, which can integrate with pipewire but doesn't seem to use v4l2loopback devices well;
  • ffmpeg, which does perfectly well with v4l2loopback but (for now) lacks pipewire support.

I'm presuming you're using pipewire and any of the xdg-desktop-portal implementations appropriate to your compositor, and that it is configured to be running as part of your session (and reachable via the DBus session bus).

@mi5ty
mi5ty / tananodes_cheatsheet.md
Last active May 18, 2026 13:58
Tana Cheat Sheet

%%tana%%

  • Cheat Sheet
    • ✨ Tana Expressions
      • Title #tana-expression
        • Description:: A title expression composes values from the node into a title.
        • Attributes:: Search for Tana "Title" Attributes
      • Search #tana-expression
        • Description:: The search expression consists of a flat list of match-clauses that must be true for a node to match the search.
        • Attributes:: Search for Search Attributes + Search for Search Field Values
  • 🧩 Tana Attributes
{
pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/tags/22.11-beta.tar.gz") {},
} :
with pkgs;
let
init = pkgs.writeScript "init.sh" ''
#!${pkgs.runtimeShell}
/activate
exec /run/current-system/systemd/lib/systemd/systemd $*
@mhluska
mhluska / fix-fastmail-1password.js
Created September 19, 2022 00:21
Fix for Fastmail Masked Email + 1Password Firefox extension prefill
for (const elem of document.querySelectorAll('[type="email"],[placeholder*=email i],[aria-label*=email i]')) {
const prevName = elem.name;
const clone = elem.cloneNode();
clone.name = 'email';
elem.replaceWith(clone);
setTimeout(() => { clone.replaceWith(elem) }, 5000);
}
@EasyIP2023
EasyIP2023 / macos-update-rpath.sh
Last active May 16, 2026 21:29
MacOS update rpath on binary
#!/bin/bash
##########################################################################################################################################
# https://zditect.com/blog/53084068.html
# On the Mac a dynamic library (dylib) has an "install name". The install name is a path
# baked into the dynamic library that says where to find the library at runtime. When you
# link against the dylib this path is saved in your binary so that your binary can find the
# dylib at runtime.
# If the given binary is a dylib
# install_name_tool -id @rpath/<libname> will update the LC_ID_DYLIB (install name) of
@ram1123
ram1123 / GetLineNumber.py
Last active February 16, 2026 13:58
Get current line number in print statement using python program
import os
from inspect import currentframe
def get_linenumber():
cf = currentframe()
return cf.f_back.f_lineno
print("Current Line number: {}".format(get_linenumber()))
print("Current File name : {}".format(os.path.basename(__file__)))
@dvaupel
dvaupel / x265_encoding_guide.md
Last active May 12, 2026 17:28
x265 Encoding Guide
@ryancdotorg
ryancdotorg / wzip.py
Last active January 25, 2025 22:46
Partial/streaming zip downloader
#!/usr/bin/env python3
# SPDX-License-Identifier: 0BSD or CC0-1.0 or MIT-0 or Unlicense
# Copyright (c) 2023, Ryan Castellucci, No Rights Reserved
import io, sys
import datetime
import argparse
import requests
import operator
import struct
@christianparpart
christianparpart / terminal-synchronized-output.md
Last active July 13, 2026 23:44
Terminal Spec: Synchronized Output

This page has moved!

Please see here: contour-terminal/vt-extensions

Synchronized Output

Synchronized output is merely implementing the feature as inspired by iTerm2 synchronized output, except that it's not using the rare DCS but rather the well known SM ? and RM ?. iTerm2 has now also adopted to use the new syntax instead of using DCS.

Semantics