Skip to content

Instantly share code, notes, and snippets.

@lucc
lucc / gist:ba081193674e35e46fa8ae3a9ac02e5f
Created January 22, 2024 14:01
nix log /nix/store/fsx9650663hnq0894zsq8bjdnzw1yqym-khal-0.11.2.drv
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
@lucc
lucc / typescript
Created October 9, 2022 08:23
Terminal transscript for test runs with different neovim versions
Script started on 2022-10-09 10:13:50+02:00 [COMMAND="sh" TERM="alacritty" TTY="/dev/pts/1" COLUMNS="117" LINES="58"]
[?2004hsh-5.1$ nix develop --check
nix develop --check
[?2004l

evaluating derivation 'git+file:///home/luc/src/nvimpager#devShells.x86_64-linux.default'



@lucc
lucc / README.md
Last active October 23, 2019 06:43
restructured text image alignment bug?

In markdown there is no alignment but raw html works for both:

Packaging status
[2018-06-15 12:31:24.076951] [0x00007f7faf28ca00] [info] logging to: astroid.log (append: false)
[2018-06-15 12:31:24.077165] [0x00007f7faf28ca00] [debug] HOME: /home/luc
[2018-06-15 12:31:24.077239] [0x00007f7faf28ca00] [info] cf: loading: "/home/luc/.config/astroid/config"
[2018-06-15 12:31:24.078237] [0x00007f7faf28ca00] [info] cf: version: 10
[2018-06-15 12:31:24.078934] [0x00007f7faf28ca00] [info] date: init.
[2018-06-15 12:31:24.079053] [0x00007f7faf28ca00] [info] db path: /home/luc/mail
[2018-06-15 12:31:24.079240] [0x00007f7faf28ca00] [info] db: open db read-only, waiting for lock..
[2018-06-15 12:31:24.079279] [0x00007f7faf28ca00] [debug] db: read-only got lock.
[2018-06-15 12:31:24.079730] [0x00007f7faf28ca00] [debug] db: open time: 0.489 ms.
[2018-06-15 12:31:24.079774] [0x00007f7faf28ca00] [info] db: closing db.
@lucc
lucc / lbdb.mk
Created December 30, 2016 09:21
Small wrapper for fast address lookup in mutt/alot/... of the addresses in khard and gpg keyring,
#!/usr/bin/make -f
# A rewimplementation of the idea of lbdb in as a make file.
CACHE = ~/.cache/lbdb
SHARE = \
/usr/share \
/usr/local/share \
~/.local/share
@lucc
lucc / log
Created May 17, 2016 16:37
debugging log of vimpager
+ mkdir_options='-m 700'
+ '[' -n '' ']'
+ tmp=/tmp
+ tmp=/tmp/vimpager_29999
+ mkdir -m 700 /tmp/vimpager_29999
+ trap 'quit 1' PIPE HUP INT QUIT ILL TRAP KILL BUS TERM
+ command -v tput
+ tput cols
+ tput lines
++ cat /tmp/vimpager_29999/cols
@lucc
lucc / make.log
Created January 17, 2016 10:55
abook build failure
make all-recursive
make[1]: Entering directory '/home/luc/vcs/abook'
Making all in po
make[2]: Entering directory '/home/luc/vcs/abook/po'
make[2]: Leaving directory '/home/luc/vcs/abook/po'
make[2]: Entering directory '/home/luc/vcs/abook'
gcc -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT abook.o -MD -MP -MF .deps/abook.Tpo -c -o abook.o abook.c
In file included from abook.c:28:0:
database.h:64:12: warning: inline function ‘field_id’ declared but never defined
inline int field_id(int i);
@lucc
lucc / pacaur.log
Created January 14, 2016 13:06
pacaur debugging output
+ version=4.4.3
+ LC_COLLATE=C
+ TEXTDOMAIN=pacaur
+ TEXTDOMAINDIR=/usr/share/locale
+ [[ -n '' ]]
+ configdir=/etc/xdg/pacaur
+ userconfigdir=/home/luc/.config/pacaur
+ userpacmandir=/home/luc/.config/pacman
+ [[ -r '' ]]
+ source /etc/makepkg.conf
@lucc
lucc / vimcat.log
Last active January 13, 2016 14:11
debugging output of vimpager
+ : if 0
+ PATH=/home/luc/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin:/opt/csw/bin:/opt/local/bin:/usr/dt/bin:/usr/xpg4/bin:/usr/bin:/bin
+ _MY_SHELL=/bin/sh
+ export _MY_SHELL
+ '[' -z 1 ']'
+ '[' -z 1 ']'
+ tmp_dir=/tmp
+ mkdir_options='-m 700'
+ case "$(uname -s)" in
++ uname -s
@lucc
lucc / test_suite_and_file_encoding_spec.lua
Created July 22, 2015 19:56
Test file to check how encoding is handled between nvim and the test suite.
local helpers = require('test.functional.helpers')
local clear, feed, execute, expect, eq, eval, wait, insert = helpers.clear, helpers.feed, helpers.execute, helpers.expect, helpers.eq, helpers.eval, helpers.wait, helpers.insert
local function diff(text)
execute('w! Xtest')
wait()
local file = io.open('Xtest')
local data = file:read('*all')
file:close()
return eq(text, data)