Skip to content

Instantly share code, notes, and snippets.

View grandchild's full-sized avatar

jakob grandchild

  • Berlin
  • 00:15 (UTC +02:00)
View GitHub Profile
@grandchild
grandchild / selfspy.conf
Last active August 29, 2015 14:07
An example config for selfspy
# Example selfspy.conf. Put this in your ~/.config/ to use it
# with the systemd .service file.
# Note: You cannot indent lines in here!
# Defaults, used by both selfspy and selfstats.
[Defaults]
# Don't use quotes around the password, they'd be part of it!
# Example:

Keybase proof

I hereby claim:

  • I am grandchild on github.
  • I am grandchild (https://keybase.io/grandchild) on keybase.
  • I have a public key whose fingerprint is 9AB0 7F25 C281 2CAA 6326 92D2 C607 F318 1F82 89A2

To claim this, I am signing this object:

@grandchild
grandchild / gist:9a99272c1a0ab43aea86
Last active August 29, 2015 14:20
JS: dbg show coords red circle
function dbg_showCoords(xy) {
var size = 500;
var hsize = size/2.0;
$("<div></div>").css({
position: "absolute",
left: xy.x-hsize,
top: xy.y-hsize,
width: size,
height: size,
"border-radius": size+"px",
@grandchild
grandchild / obj
Last active August 29, 2015 14:22
some json
{
"key": [
1,
3,
2,
4
],
"other": "hallo"
}
Section "InputClass"
Identifier "keyboard-layout"
MatchIsKeyboard "on"
Option "XkbLayout" "us, de"
Option "XkbOptions" "grp: menu_toggle, grp_led: caps"
EndSection
Section "InputClass"
Identifier "evdev keyboard catchall"
@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
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 / 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);
@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 / 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
INFO 2018-01-03T01:35:03.292Z Sending a keepalive message