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
@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"
)
@subnut
subnut / abp_filters.txt
Created June 6, 2022 12:50
adblockplus custom filters
! 2022-05-25 https://stackoverflow.com
##.js-consent-banner
! 2022-06-03 https://www.youtube.com
##.ytp-endscreen-content
@subnut
subnut / capsctrl.ahk
Created May 24, 2022 18:05
capsctrl - CapsLock if tapped, Control if held
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; CapsLock is Left control
CapsLock::LCtrl
CapsLock up::
Send, {LCtrl up}
if (A_TimeSincePriorHotkey < 150)
Send, {Blind}{CapsLock}