Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import sys
import argparse
import os.path
from portage.dep import paren_reduce
from gentoolkit.atom import Atom
from gentoolkit.dependencies import Dependencies
#!/bin/bash
set_dpi() {
DPI=$1
echo "Xft.dpi: $DPI" | xrdb -merge
echo "Xft/DPI $(( ${DPI} * 1024 ))" > $HOME/.config/xsettingsd/xsettingsd.conf
kill -HUP $(pgrep xsettingsd)
}
case ${AUTORANDR_CURRENT_PROFILE} in
diff --git a/zathura/callbacks.c b/zathura/callbacks.c
index 7db22f8..a8db4ed 100644
--- a/zathura/callbacks.c
+++ b/zathura/callbacks.c
@@ -254,7 +254,10 @@ cb_page_layout_value_changed(girara_session_t* session, const char* name, girara
unsigned int page_padding = 1;
girara_setting_get(zathura->ui.session, "page-padding", &page_padding);
- page_widget_set_mode(zathura, page_padding, pages_per_row, first_page_column);
+ bool page_right_to_left = false;
Sep 03 13:16:42 localhost kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
Sep 03 13:16:42 localhost kernel: PGD 0 P4D 0
Sep 03 13:16:42 localhost kernel: Oops: 0000 [#1] PREEMPT SMP PTI
Sep 03 13:16:42 localhost kernel: CPU: 2 PID: 287 Comm: systemd-udevd Not tainted 4.18.5-gentoo #3
Sep 03 13:16:42 localhost kernel: Hardware name: Dell Inc. XPS 13 9370/0F6P3V, BIOS 1.4.0 05/25/2018
Sep 03 13:16:42 localhost kernel: RIP: 0010:populate_error_injection_list+0x93/0x120
Sep 03 13:16:42 localhost kernel: Code: 70 28 4c 89 38 89 50 20 48 8b 15 a0 0b e0 00 48 89 58 18 48 89 05 95 0b e0 00 48 89 50 08 48 89>
Sep 03 13:16:42 localhost kernel: RSP: 0018:ffff9777003f7c38 EFLAGS: 00010287
Sep 03 13:16:42 localhost kernel: RAX: 0000000000000000 RBX: 00000000fffffff8 RCX: 0000000000000000
Sep 03 13:16:42 localhost kernel: RDX: ffff940f17494600 RSI: 0000000c0274a6b0 RDI: ffffffff9d28f460
#define MY_FSID_VAL0 0x546b23f0
#define MY_FSID_VAL1 0xcd0e1903
...
if (!error &&
st->f_fsid.val[0] == MY_FSID_VAL0 &&
st->f_fsid.val[1] == MY_FSID_VAL1)
st->f_type = EXT4_SUPER_MAGIC;
int livepatch_user_statfs(const char __user *pathname, struct kstatfs *st)
{
struct path path;
int error;
unsigned int lookup_flags = LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT;
retry:
error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path);
if (!error) {
error = vfs_statfs(&path, st);
if (!error)
int user_statfs(const char __user *pathname, struct kstatfs *st)
{
struct path path;
int error;
unsigned int lookup_flags = LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT;
retry:
error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path);
if (!error) {
error = vfs_statfs(&path, st);
path_put(&path);
struct statfs {
__fsword_t f_type; /* Type of filesystem (see below) */
__fsword_t f_bsize; /* Optimal transfer block size */
fsblkcnt_t f_blocks; /* Total data blocks in filesystem */
fsblkcnt_t f_bfree; /* Free blocks in filesystem */
fsblkcnt_t f_bavail; /* Free blocks available to
unprivileged user */
fsfilcnt_t f_files; /* Total file nodes in filesystem */
fsfilcnt_t f_ffree; /* Free file nodes in filesystem */
fsid_t f_fsid; /* Filesystem ID */
[54346.380452] usb 1-1.2: new high-speed USB device number 24 using xhci_hcd [5/1821]
[54346.460981] usb 1-1.2: New USB device found, idVendor=13fe, idProduct=4100, bcdDevice= 1.00
[54346.460986] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[54346.460988] usb 1-1.2: Product: USB DISK 2.0
[54346.460991] usb 1-1.2: Manufacturer:
[54346.460993] usb 1-1.2: SerialNumber: 070B5303DBB53F98
[54346.985272] usb-storage 1-1.2:1.0: USB Mass Storage device de
@naota
naota / bzip2.log
Last active February 21, 2018 03:27
* Packages now in '/var/db/repos/gentoo/packages':
* virtual/man-0-r1: 7.0K
* sys-apps/kbd-2.0.4: 1.3M
* net-misc/rsync-3.1.3: 401K
* sys-devel/gcc-5.4.0-r3: 88.7M
* sys-devel/gcc-7.2.0-r1: 53.6M
* sys-devel/gcc-7.3.0: 53.6M
* sys-apps/man-pages-4.15: 3.2M
* sys-process/psmisc-23.1: 145K
* app-arch/xz-utils-5.2.3: 380K