Skip to content

Instantly share code, notes, and snippets.

View subnut's full-sized avatar
🏛️
Busy. Very very Busy.

Subhaditya Nath subnut

🏛️
Busy. Very very Busy.
View GitHub Profile

Better way to read the output of iw info

( iw phy0 info; echo; echo vim:fdm=indent; ) | vim -
PowerShell -WindowStyle Hidden -Command "& Start-Process -NoNewWindow ffmpeg -ArgumentList '-f',dshow,-show_video_device_dialog,true,-i,'"""video=Razer Kiyo Pro"""'"
@subnut
subnut / Makefile.in
Created January 1, 2024 08:16
Makefile.in example
.POSIX:
all:
LDFLAGS = -ltree-sitter
CFLAGS = -Wall -O3
CC = cc
TARGETS = main
main_SRCS = \
main.c \
--- ~/.local/share/gnome-shell/extensions/status-area-horizontal-spacing@mathematical.coffee.gmail.com/extension.js
+++ ~/.local/share/gnome-shell/extensions/status-area-horizontal-spacing@mathematical.coffee.gmail.com/extension.js
@@ -80,6 +80,14 @@
return;
}
+ if (actor.has_style_class_name('screen-sharing-indicator')) return;
+ if (actor.has_style_class_name('screen-recording-indicator')) return;
+ if (actor.first_child
+ && actor.first_child.get_style_class_name
template isForwardRangeOf(T) {
bool isForwardRangeOf(R)(R _) if (isForwardRange!(R, T)) => true;
bool isForwardRangeOf(R)(R _) if (!isForwardRange!(R, T)) => false;
}
import std.range.primitives : isForwardRange;
enum bool isForwardRange(R, T)
= std.range.primitives.isForwardRange!R
&& isInputRange!(R, T);
{
"name": "Keychron K8 Pro ANSI White",
"vendorProductId": 875823747,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_ESC",
"KC_BRID",
"KC_BRIU",
"CUSTOM(4)",
@subnut
subnut / chimera-zbm.md
Created November 15, 2023 17:07
Chimera linux install in existing zfsbootmenu

Extra steps only

  • copy /etc/hostid from pre-existing distro
  • add /etc/zfs/zroot.key with 000 permissions, and include it in initramfs
@subnut
subnut / .wezterm
Created October 25, 2023 18:36
Wezterm config
local colorschemes = {
{ "Colors (base16)", "OneLight (Gogh)" },
}
local colorscheme = colorschemes[1]
local fonts = {
-- { font name, font_size, line_height, cell_width },
{ "Victor Mono", 14.5, 0.85, 0.9 },
{ "Anonymous Pro", 16, 1.0, 0.85 },
-- Iosevka
@subnut
subnut / settings.json
Last active June 3, 2023 13:08
VSCodium settings
{
"editor.fontSize": 16,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"editor.renderFinalNewline": "dimmed",
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "explicit",
"zenMode.centerLayout": false,
"workbench.preferredLightColorTheme": "VLight", // Vladeeg.vscode-theme-vlight
@subnut
subnut / http_routing.go
Last active August 1, 2022 15:03
Just some personal notes regarding http routing in golang
package main
import (
"fmt"
"io"
"log"
"net/http"
router "github.com/julienschmidt/httprouter"
)