Skip to content

Instantly share code, notes, and snippets.

@torwag
torwag / gist:5976009c637c467458f750aa0ebf5e58
Created November 27, 2019 22:30
decrypt swap via keyfile during boot
cat /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(piix ide_disk reiserfs)
MODULES=()
# BINARIES
@torwag
torwag / dmesg.log
Created March 13, 2019 23:08
funny usb suspend problem
[61004.532368] PM: Syncing filesystems ... done.
[61004.570204] Freezing user space processes ... (elapsed 0.212 seconds) done.
[61004.782720] OOM killer disabled.
[61004.782721] Freezing remaining freezable tasks ... (elapsed 0.007 seconds) done.
[61004.789956] printk: Suspending console(s) (use no_console_suspend to debug)
[61004.804221] sd 3:0:0:0: [sda] Synchronizing SCSI cache
[61004.804378] sd 3:0:0:0: [sda] Stopping disk
[61005.029002] dpm_run_callback(): usb_dev_suspend+0x0/0x10 returns -16
[61005.029007] PM: Device usb3 failed to suspend async: error -16
[61007.580475] tpm tpm0: TPM savestate took 2500ms
@torwag
torwag / samsung-remote.xml
Created January 8, 2017 23:08 — forked from mPastuszko/samsung-remote.xml
Samsung remote key mapping for Kodi
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not -->
<!-- used in the current window's section. Note that there is only handling -->
<!-- for a single action per button at this stage. -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
<!-- gamepads. -->
<!-- The format is: -->
<!-- <device> -->