Skip to content

Instantly share code, notes, and snippets.

@lina-bh
lina-bh / # emacs - 2026-01-16_16-57-46.txt
Created January 16, 2026 16:58
emacs on Bazzite - Homebrew build logs
Homebrew build logs for emacs on Bazzite
Build date: 2026-01-16 16:57:46
vim.api.nvim_create_autocmd("CursorHold", {
callback = function()
local lnum, col = unpack(vim.api.nvim_win_get_cursor(0))
local diagnostics = vim.diagnostic.get(0, { lnum = lnum - 1 })
if #diagnostics > 0 then
vim.api.nvim_echo({
{
vim
.iter(diagnostics)
:fil
@lina-bh
lina-bh / autoexec.cfg
Last active January 26, 2026 19:08
cs2 config
fps_max 120
fps_max_ui 64
bind mwheeldown +jump
bind scancode100 compliment
bind z thanks
bind x go
bind c takingfire
bind v +voicerecord
bind b buymenu
#!/bin/sh
OUTPUT=eDP-1
mode() {
kscreen-doctor "output.${OUTPUT}.mode.${1}"
return $?
}
case "$1" in
"60") mode 2;;
"120") mode 1;;
*)
@lina-bh
lina-bh / csv2opml.py
Last active March 25, 2025 18:15
Transform Google Takeout YouTube subscriptions into OPML file for RSS readers.
import csv
import sys
import xml.etree.ElementTree as ET
opml = ET.Element("opml")
xmldoc = ET.ElementTree(element=opml)
body = ET.SubElement(opml, "body")
with open(sys.argv[1], "r") as f:
;; -*- lexical-binding: t; -*-
(eval-and-compile
(require 'cl-lib))
(defun ansible-doc (plugin)
(interactive "MPlugin: \n")
(let* (buffer
(sentinel (lambda (proc status)
(with-current-buffer buffer
(cond
#!/usr/bin/env python3
import json
import os
import os.path
import subprocess
import sys
progname = sys.argv[0]
os.chdir(os.path.dirname(os.path.realpath(__file__)))
use std::{borrow::Cow, collections::HashMap, ops::Range};
use std::error::Error;
pub struct FetchActivitiesParams {
term: u8,
cookies: HashMap<Vec<u8>, Vec<u8>>,
}
fn get_client() -> reqwest::Client {
return reqwest::Client::new();
#include "file.h"
ssize_t add(ssize_t, ssize_t); // exported definition
; vim: set ft=nasm
global _main
extern _puts
section .data
hello: db "hello, "
hello_len: equ $-hello
section .text
_main: