Skip to content

Instantly share code, notes, and snippets.

View grandchild's full-sized avatar

jakob grandchild

  • Berlin
View GitHub Profile
Note the difference between the urxvt-unicode sessions, one with $TERM set to 'rxvt', the other with the default value!
As stated previously, AltLeft/-Right don't work in TTY mode, because they switch between ttys.
@grandchild
grandchild / tty.log
Created October 19, 2020 16:00
test_keys.zsh results
■ zsh test_keys.zsh
TERM=xterm
Wait for prompt before pressing each key.
Press SPACE to skip to the next key.
Don't press any key within 10 seconds to abort.
Ready [y/N]? y
Press Backspace
Press Delete
Press ControlLeft
key_info[ControlLeft]='^[[D' # was '^[[1;5D'
@grandchild
grandchild / PKGBUILD
Created July 26, 2018 18:59
PKGBUILD for mingw-w64-minizip
_pkgname=minizip
pkgname=mingw-w64-${_pkgname}
pkgver=2.3.8
pkgrel=1
epoch=1
pkgdesc='ZIP file extraction library (mingw-w64)'
url='https://github.com/nmoinvaz/minizip'
license=('ZLIB' 'custom')
arch=('any')
makedepends=('git' 'mingw-w64-cmake' 'mingw-w64-configure')
@grandchild
grandchild / component-fields.yaml
Last active April 10, 2018 23:06
webvs - webvsc - component differences
# abc -> field name in webvsc
# = -> no difference
# - -> missing in webvsc
# (a, b) -> different possible values
EffectList: { ### =
code: { ## =
init: string, # =
perFrame: string, # =
},
@grandchild
grandchild / gotk_timeoutadd_single.go
Created February 19, 2018 20:40
gotk glib.TimeoutAdd() single execution
// This code contains no error checking for brevity.
// Always check your errors, kids!
package main
import (
"fmt"
"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
)
@grandchild
grandchild / debug-log
Created January 8, 2018 10:45
Error: Missing Signed PreKey for PreKeyWhisperMessage
This file has been truncated, but you can view the full file.
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Signal/1.1.0 Chrome/58.0.3029.110 Electron/1.7.9 Safari/537.36 node/7.9.0 env/production
INFO 2018-01-03T01:27:41.901Z Sending a keepalive message
INFO 2018-01-03T01:28:37.096Z Sending a keepalive message
INFO 2018-01-03T01:29:32.205Z Sending a keepalive message
INFO 2018-01-03T01:30:27.654Z Sending a keepalive message
INFO 2018-01-03T01:31:22.781Z Sending a keepalive message
INFO 2018-01-03T01:32:17.889Z Sending a keepalive message
INFO 2018-01-03T01:33:13.067Z Sending a keepalive message
INFO 2018-01-03T01:34:08.181Z Sending a keepalive message
@grandchild
grandchild / nsis-makepkg-strace-filtered.log
Created November 2, 2016 23:14
The result of `strace -f makepkg 2>&1 | grep 'zlib\|libz' -n`
24575:[pid 4319] open("/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
25956:[pid 4323] execve("/usr/bin/pacman", ["/usr/bin/pacman", "-T", "scons", "mingw-w64-gcc", "mingw-w64-zlib"], [/* 58 vars */]) = 0
26053:[pid 4323] open("/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
28146:[pid 4323] open("/var/lib/pacman/local/lib32-zlib-1.2.8-1/desc", O_RDONLY) = 3
28148:[pid 4323] read(3, "%NAME%\nlib32-zlib\n\n%VERSION%\n1.2"..., 4096) = 378
29273:[pid 4323] open("/var/lib/pacman/local/libzip-1.1.3-1/desc", O_RDONLY) = 3
29275:[pid 4323] read(3, "%NAME%\nlibzip\n\n%VERSION%\n1.1.3-1"..., 4096) = 339
29523:[pid 4323] open("/var/lib/pacman/local/mingw-w64-zlib-1.2.8-5/desc", O_RDONLY) = 3
29525:[pid 4323] read(3, "%NAME%\nmingw-w64-zlib\n\n%VERSION%"..., 4096) = 380
35841:[pid 4366] open("/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
@grandchild
grandchild / colormap.patch
Created February 21, 2016 18:28
colormap patch
diff --git a/trans/colour_map.c b/trans/colour_map.c
index d31a3b8..edc861b 100644
--- a/trans/colour_map.c
+++ b/trans/colour_map.c
@@ -107,7 +107,7 @@ static int load_config(ComponentContext *ctx, const uint8_t *buf, int buf_len)
}
R32(temp);
- clm->blend_adj = temp & 0xff;
+ clm->blend_adj = 0xff - (temp & 0xff);
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `libavs.a' is up to date.
gcc -o cygavs.dll -Wl,-no-undefined -shared -Wl,--out-implib=libavs.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive bpm.os block.os components.os effect_list.os expressions.os linedraw.os main.os matrix.os not_implemented.os pixel.os utils.os misc/buffer_save.os misc/comment.os misc/render_mode.os render/beat_clear.os render/bass_spin.os render/clear_screen.os render/dot_fountain.os render/dot_grid.os render/dot_plane.os render/osc_star.os render/particle.os render/ring.os render/rot_star.os render/simple.os render/superscope.os render/star_field.os render/timescope.os trans/blit.os trans/blur.os trans/brightness.os trans/bump.os trans/channel_shift.os trans/colour_clip.os trans/colour_fade.os trans/colour_map.os trans/colour_modifier.os trans/colour_reduction.os trans/dynamic_distance_modifier.os trans/dynamic_movement.os trans/dynamic_shift.os tra
@grandchild
grandchild / smdemo01.sh
Created November 26, 2015 00:06
An animation for screen-message
# A screen-message animation
#
# The rules are simple
# : You may add or remove one character per line
# : Keep track of the cursor! Only add or remove where you
# could be if you would play with sm in reality. (Use Esc,
# Home, End, etc.)
# Exceptions
# : You may simulate key-long-press repetition