Skip to content

Instantly share code, notes, and snippets.

View TimoFreiberg's full-sized avatar

Timo Freiberg TimoFreiberg

  • Stuttgart, Germany
View GitHub Profile
@TimoFreiberg
TimoFreiberg / config
Last active May 26, 2020 20:42
Sway screen freeze when focusing other screen via hotkeys
set $mod Mod4
set $term alacritty
bindsym $mod+Return exec $term
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
@TimoFreiberg
TimoFreiberg / full backtrace
Created May 23, 2020 13:06
sway crash when closing Terraria
(gdb) bt full
#0 0x00007fae1c86d355 in raise () at /usr/lib/libc.so.6
#1 0x00007fae1c856853 in abort () at /usr/lib/libc.so.6
#2 0x00007fae1c8b0878 in __libc_message () at /usr/lib/libc.so.6
#3 0x00007fae1c8b7d3a in () at /usr/lib/libc.so.6
#4 0x00007fae1c8bb294 in _int_malloc () at /usr/lib/libc.so.6
#5 0x00007fae1c8bc5a9 in malloc () at /usr/lib/libc.so.6
#6 0x00007fae1c8c023f in strdup () at /usr/lib/libc.so.6
#7 0x00007fae1cfea7b1 in json_object_object_add_ex () at /usr/lib/libjson-c.so.5
#8 0x0000558c84b69504 in ipc_json_describe_output (object=0x558c85681c40, output=0x558c85e5fde0) at ../sway/sway/ipc-json.c:259
@TimoFreiberg
TimoFreiberg / backtrace
Created May 23, 2020 10:27
Sway backtrace for Divinity 2 crash
(gdb) bt full
#0 0x00007f2feb852355 in raise () at /usr/lib/libc.so.6
#1 0x00007f2feb83b853 in abort () at /usr/lib/libc.so.6
#2 0x00007f2feb895878 in __libc_message () at /usr/lib/libc.so.6
#3 0x00007f2feb89cd3a in () at /usr/lib/libc.so.6
#4 0x00007f2feb89da86 in unlink_chunk.constprop () at /usr/lib/libc.so.6
#5 0x00007f2feb89dbd7 in malloc_consolidate () at /usr/lib/libc.so.6
#6 0x00007f2feb89fa35 in _int_malloc () at /usr/lib/libc.so.6
#7 0x00007f2feb8a21e5 in calloc () at /usr/lib/libc.so.6
#8 0x00007f2fe9a0e3f2 in () at /usr/lib/dri/radeonsi_dri.so
@TimoFreiberg
TimoFreiberg / backtrace
Last active May 16, 2020 20:31
Sway crash log (dpms off with kanshi running)
#0 0x00007f15937942e5 in raise () at /usr/lib/libc.so.6
#1 0x00007f159377d853 in abort () at /usr/lib/libc.so.6
#2 0x00007f159377d727 in _nl_load_domain.cold () at /usr/lib/libc.so.6
#3 0x00007f159378c936 in () at /usr/lib/libc.so.6
#4 0x00007f15939f7c10 in () at /usr/lib/libwlroots.so.5
#5 0x00007f15939f8fbb in wlr_output_manager_v1_set_configuration () at /usr/lib/libwlroots.so.5
#6 0x00007f1593a0736e in () at /usr/lib/libwlroots.so.5
#7 0x00007f15939f73b2 in wlr_output_layout_add_auto () at /usr/lib/libwlroots.so.5
#8 0x000055837dfc636b in apply_output_config (oc=oc@entry=0x55837eeb9320, output=output@entry=0x55837f361740) at ../sway/sway/config/output.c:460
wlr_output = 0x55837ef3c9d0
Opted-in Controller Mask for AppId 238960: 0
Game update: AppID 238960 "", ProcID 4592, IP 0.0.0.0:0
Starting app 238960
Installing breakpad exception handler for appid(steam)/version(1560817063)
>>> Adding process 4592 for game ID 238960
GameAction [AppID 238960, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
GameAction [AppID 238960, ActionID 1] : LaunchApp changed task to Completed with ""
JS method call Messaging.PostMessage with 4 arguments
JS method call SharedConnection.SendMsgAndAwaitResponse with 3 arguments
ERROR: ld.so: object '/home/tf/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
garbage
ignore_this_header
header1 header2
val1 "a,b,c,d,e"
@TimoFreiberg
TimoFreiberg / gist:9276eb0ee2eb3f0d3bd1b577e75e3950
Created March 30, 2019 14:36
gruvbox backtrace (void-variable neo-banner-face)
Debugger entered--Lisp error: (void-variable neo-banner-face)
(list :inherit neo-banner-face)
(list '((class color) (min-colors 16777215)) (list :inherit neo-banner-face))
(list (list '((class color) (min-colors 16777215)) (list :inherit neo-banner-face)))
(list (list (list '((class color) (min-colors 16777215)) (list :background gruvbox-bg :foreground gruvbox-light0))) (list (list '((class color) (min-colors 16777215)) (list :background gruvbox-light0))) (list (list '((class color) (min-colors 16777215)) (list :background gruvbox-dark3 :foreground gruvbox-light2 :box (list)))) (list (list '((class color) (min-colors 16777215)) (list :background gruvbox-dark1 :foreground gruvbox-light4 :box (list)))) (list (list '((class color) (min-colors 16777215)) (list :background gruvbox-bg))) (list (list '((class color) (min-colors 16777215)) (list :background gruvbox-dark1))) (list (list '((class color) (min-colors 16777215)) (list :background gruvbox-dark2))) (list (list '((class color) (min-colors 16777215))
@TimoFreiberg
TimoFreiberg / deserializer.rs
Created March 27, 2019 12:11
Rust calamine DataType to String deserializer
use std::fmt;
use serde::de::{self, Visitor};
use serde::{Deserialize, Deserializer};
fn deserialize_datatype_as_optional_string<'de, D>(
deserializer: D,
) -> Result<Option<String>, D::Error>
where
D: Deserializer<'de>,
$ lein test
java.lang.RuntimeException: Invalid token: ::t/kw
at clojure.lang.Util.runtimeException (Util.java:221)
clojure.lang.LispReader.interpretToken (LispReader.java:390)
clojure.lang.LispReader.read (LispReader.java:283)
clojure.lang.LispReader.readDelimitedList (LispReader.java:1200)
clojure.lang.LispReader$ListReader.invoke (LispReader.java:1049)
clojure.lang.LispReader.read (LispReader.java:263)
clojure.lang.LispReader.read (LispReader.java:196)
clojure.lang.LispReader.read (LispReader.java:185)
@TimoFreiberg
TimoFreiberg / random_alphanumeric.clj
Created September 5, 2018 08:54
clojure random lower case alphanumeric string
(def alphanumeric "0123456789abcdefghijklmnopqrstuvwxyz")
(defn rand-alphanumeric
[len]
(apply str (take len (repeatedly #(rand-nth alphanumeric)))))