Skip to content

Instantly share code, notes, and snippets.

@svrana
svrana / qutebrowser-quickmarks-to-luakit-sqlite.lua
Created June 18, 2023 21:24
Convert qutebrowser quickmarks to luakit sqlite bookmarks
local usage =
[[Usage: luakit -c qutebrowser-quickmarks-to-luakit-sqlite.lua [bookmark plaintext path] [bookmark db path]
]]
local function split(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t = {}
for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do
@svrana
svrana / gist:5c68f834a88eb52fd11e726c0a089906
Created March 28, 2023 19:00
home-manager: neovim wrapped startup showing plugin loading occuring twice
sourcing "/nix/store/1czj8mydgi30kyfimq6q4ifh06q131ch-neovim-unwrapped-0.8.3/share/nvim/runtime/ftplugin.vim"
finished sourcing /nix/store/1czj8mydgi30kyfimq6q4ifh06q131ch-neovim-unwrapped-0.8.3/share/nvim/runtime/ftplugin.vim
sourcing "/nix/store/1czj8mydgi30kyfimq6q4ifh06q131ch-neovim-unwrapped-0.8.3/share/nvim/runtime/indent.vim"
finished sourcing /nix/store/1czj8mydgi30kyfimq6q4ifh06q131ch-neovim-unwrapped-0.8.3/share/nvim/runtime/indent.vim
could not source "/etc/xdg/nvim/sysinit.vim"
could not source "/home/shaw/.nix-profile/etc/xdg/nvim/sysinit.vim"
could not source "/etc/profiles/per-user/shaw/etc/xdg/nvim/sysinit.vim"
could not source "/nix/var/nix/profiles/default/etc/xdg/nvim/sysinit.vim"
could not source "/run/current-system/sw/etc/xdg/nvim/sysinit.vim"
@svrana
svrana / Makefile
Last active February 15, 2023 17:34
Makefile boilerplate
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
DATE := $(shell date +"%a %b %d %T %Y")
UNAME_S := $(shell uname -s | tr A-Z a-z)

Keybase proof

I hereby claim:

  • I am svrana on github.
  • I am svrana (https://keybase.io/svrana) on keybase.
  • I have a public key ASDNDAFIPlbX3JLgy8rg6DVL9Nyx5gFdte2Xgg1Zn00Fowo

To claim this, I am signing this object: