Skip to content

Instantly share code, notes, and snippets.

Avatar

jakob grandchild

  • Berlin
View GitHub Profile
@grandchild
grandchild / PKGBUILD
Created Jul 26, 2018
PKGBUILD for mingw-w64-minizip
View PKGBUILD
_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 Apr 10, 2018
webvs - webvsc - component differences
View component-fields.yaml
# 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 Feb 19, 2018
gotk glib.TimeoutAdd() single execution
View gotk_timeoutadd_single.go
// 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 Jan 8, 2018
Error: Missing Signed PreKey for PreKeyWhisperMessage
View debug-log
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 Nov 2, 2016
The result of `strace -f makepkg 2>&1 | grep 'zlib\|libz' -n`
View nsis-makepkg-strace-filtered.log
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
View 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);
View avs build windows scons
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 Nov 26, 2015
An animation for screen-message
View smdemo01.sh
# 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
View xorgkb
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 / obj
Last active Aug 29, 2015
some json
View obj
{
"key": [
1,
3,
2,
4
],
"other": "hallo"
}
You can’t perform that action at this time.