Skip to content

Instantly share code, notes, and snippets.

Matthias Braun mb720

View GitHub Profile
View firefox_journalctl.log
Feb 15 18:31:58 marathon audit[794549]: ANOM_ABEND auid=1001 uid=1001 gid=1001 ses=1 pid=794549 comm="Xwayland" exe="/usr/bin/Xwayland" sig=6 res=1
Feb 15 18:31:59 marathon kernel: audit: type=1701 audit(1581787918.916:85): auid=1001 uid=1001 gid=1001 ses=1 pid=794549 comm="Xwayland" exe="/usr/bin/Xwayland" sig=6 res=1
Feb 15 18:31:59 marathon kernel: audit: type=1130 audit(1581787918.940:86): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@7-794560-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 15 18:31:58 marathon audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@7-794560-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 15 18:31:58 marathon systemd[1]: Started Process Core Dump (PID 794560/UID 0).
Feb 15 18:32:00 marathon systemd-coredump[794561]: Process 794549 (Xwayland) of user 1001 dumped core.
View vlc_journalctl.log
Feb 15 18:36:42 marathon audit[804494]: ANOM_ABEND auid=1001 uid=1001 gid=1001 ses=1 pid=804494 comm="vlc" exe="/usr/bin/vlc" sig=11 res=1
Feb 15 18:36:42 marathon kernel: vlc[804521]: segfault at 50 ip 00007f10f3f90f65 sp 00007f109d916450 error 4 in libwayland-client.so.0.3.0[7f10f3f90000+5000]
Feb 15 18:36:42 marathon kernel: Code: 84 24 d0 00 00 00 48 8b 72 10 ba 14 00 00 00 48 89 44 24 18 44 89 e0 48 8d 04 40 c7 44 24 0c 30 00 00 00 48 8d 04 c6 4c 89 f6 <48> 8b 78 08 67 e8 f1 23 00 00 4c 89 e9 4c 89 f2 44 89 e6 48 89 ef
Feb 15 18:36:42 marathon kernel: audit: type=1701 audit(1581788202.278:88): auid=1001 uid=1001 gid=1001 ses=1 pid=804494 comm="vlc" exe="/usr/bin/vlc" sig=11 res=1
Feb 15 18:36:42 marathon audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@8-804562-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 15 18:36:42 marathon systemd[1]: Started Process Core Dump (PID 804562/UID 0).
Feb 15 18:36:42 marathon kern
View vlc_journalctl_with_core_dump.log
Feb 15 18:58:18 marathon systemd-coredump[849225]: Process 849196 (vlc) of user 1001 dumped core.
Stack trace of thread 849223:
#0 0x00007fa7d9232d24 __pthread_mutex_lock (libpthread.so.0 + 0xbd24)
#1 0x00007fa7d51bffe3 wl_proxy_create_wrapper (libwayland-client.so.0 + 0x6fe3)
#2 0x00007fa7b592d10c n/a (libEGL_mesa.so.0 + 0x2310c)
#3 0x00007fa7b591590f n/a (libEGL_mesa.so.0 + 0xb90f)
#4 0x00007fa77e80a622 n/a (libegl_wl_plugin.so + 0x1622)
#5 0x00007fa7d8f77964 n/a (libvlccore.so.9 + 0x2e964)
#6 0x00007fa7d8f77f21 vlc_module_load (libvlccore.so.9 + 0x
View sway.log
2020-02-15 18:31:29 - [sway/main.c:152] Linux marathon 5.5.3-arch1-1 #1 SMP PREEMPT Tue, 11 Feb 2020 15:35:41 +0000 x86_64 GNU/Linux
2020-02-15 18:31:29 - [sway/main.c:168] Contents of /etc/os-release:
2020-02-15 18:31:29 - [sway/main.c:152] NAME="Arch Linux"
2020-02-15 18:31:29 - [sway/main.c:152] PRETTY_NAME="Arch Linux"
2020-02-15 18:31:29 - [sway/main.c:152] ID=arch
2020-02-15 18:31:29 - [sway/main.c:152] BUILD_ID=rolling
2020-02-15 18:31:29 - [sway/main.c:152] ANSI_COLOR="0;36"
2020-02-15 18:31:29 - [sway/main.c:152] HOME_URL="https://www.archlinux.org/"
2020-02-15 18:31:29 - [sway/main.c:152] DOCUMENTATION_URL="https://wiki.archlinux.org/"
2020-02-15 18:31:29 - [sway/main.c:152] SUPPORT_URL="https://bbs.archlinux.org/"
@mb720
mb720 / screen_brightness.sh
Created Dec 1, 2019
Script for changing monitor brightness on Linux. Could be mapped to the XF86MonBrightnessUp and XF86MonBrightnessDown keys.
View screen_brightness.sh
#!/usr/bin/env bash
# Changes the monitor brightness.
# Usage examples: "screen_brightness.sh +500", "screen_brightness 3000"
if (( $# >= 1 )); then
argument="$1"
# Writing to this file changes the monitor brightness.
# The parentheses are used to have a wildcard for the
@mb720
mb720 / BigIntAddition.hs
Created Jun 28, 2018
Exercise in BigInt addition for Haskell
View BigIntAddition.hs
import Data.Int(Int8)
import Data.List(foldl')
import Test.QuickCheck
type Digit = Int8
-- Feedback on a prior version of this code: https://codereview.stackexchange.com/questions/195150/haskell-bigint-addition
-- Run checkAdd to test it with QuickCheck
-- Adds two integer lists.
@mb720
mb720 / bash.rc
Created May 21, 2018
Keybinding to open file selected with fzf in editor
View bash.rc
# Search a file with fzf and then open it in an editor
fzf_then_open_in_editor() {
local file=$(fzf)
# Open the file if it exists
if [ -n "$file" ]; then
# Use the default editor if it's defined, otherwise Vim
${EDITOR:-vim} "$file"
fi
}
bind -x '"C-o": fzf_then_open_in_editor'
You can’t perform that action at this time.