Skip to content

Instantly share code, notes, and snippets.

@Risto-Stevcev
Risto-Stevcev / conjure-node.fnl
Last active October 15, 2023 00:56
Conjure nodejs client attempt
(local a (require :conjure.aniseed.core))
;;(import-macros {: def} :aniseed)
(local extract (require :conjure.extract))
(local str (require :conjure.aniseed.string))
(local nvim (require :conjure.aniseed.nvim))
(local stdio (require :conjure.remote.stdio))
(local config (require :conjure.config))
(local text (require :conjure.text))
(local mapping (require :conjure.mapping))
(local client (require :conjure.client))
@Risto-Stevcev
Risto-Stevcev / suckless-st-sixel.diff
Created June 19, 2023 13:48 — forked from saitoha/suckless-st-sixel.diff
Add SIXEL graphics support for suckless st. (sixel.c/sixel_hls.c come from mintty, licensed under GPL)
commit ea830e03d4d4562b1ff225940f65bceddd9cad6c
Author: Hayaki Saito <saitoha@me.com>
Date: Sun Jun 11 23:46:45 2017 +0900
Add sixel graphics support
Signed-off-by: Hayaki Saito <saitoha@me.com>
diff --git a/Makefile b/Makefile
index d8595fe..a25d040 100644
@Risto-Stevcev
Risto-Stevcev / ANSI.md
Last active June 2, 2023 03:43 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Risto-Stevcev
Risto-Stevcev / esm-package.md
Created June 2, 2023 03:36 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@Risto-Stevcev
Risto-Stevcev / unix-socket-simple-ipc.md
Created May 27, 2023 18:54
unix-socket-simple-ipc

Unix socket simple IPC example

Install

xbps-install -S openbsd-netcat

Server

@Risto-Stevcev
Risto-Stevcev / tablist-complete-example.el
Last active May 25, 2023 03:56
Emacs tabulated-list-mode example
(defun tablist-get-id ()
(interactive)
(message (tabulated-list-get-id)))
(defun tablist-get-emtry ()
(interactive)
(message "%s" (tabulated-list-get-entry)))
@Risto-Stevcev
Risto-Stevcev / emacs-document-lambda.el
Created May 23, 2023 16:00
emacs-documenting-lambda.md
Eval: (documentation (lambda () "do stuff" 123))
@Risto-Stevcev
Risto-Stevcev / runit-user-level-logging-fix.md
Created May 20, 2023 07:05
Fix for runit user-level logging

Fix for runit user-level logging

I was getting:

λ SVDIR=~/service sv status emacsd
down: emacsd: 100s, normally up; warning: emacsd/log: unable to open supervise/ok: file does not exist
down: log: 100s, normally up
@Risto-Stevcev
Risto-Stevcev / foobar.patch
Last active May 1, 2023 22:21
Patching using the `patch` command
diff -bur foo/baz.txt bar/baz.txt
--- foo/baz.txt 2023-05-01 18:20:09.887623152 -0400
+++ bar/baz.txt 2023-05-01 18:20:09.887623152 -0400
@@ -1 +1 @@
-norf
+qux