Skip to content

Instantly share code, notes, and snippets.

@hxss
hxss / booster.yaml
Created November 5, 2023 15:03
booster quiet option breaks loading
modules: -*,nvme,ext4
vconsole: true
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20211217 (64-bit version)
* Copyright (c) 2000 - 2021 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Mon Jan 24 20:45:21 2022
*
* Original Table Header:
@hxss
hxss / antizapret-nfqws.service
Created January 26, 2022 23:00
circumvention of twitter dpi restrictions
# etc/systemd/system/antizapret-nfqws.service
[Unit]
Description=circumvention of twitter dpi restrictions
[Service]
ExecStart=/usr/local/lib/antizapret/nfqws
[Install]
WantedBy=basic.target
@hxss
hxss / blueberry-tray.service
Last active January 18, 2022 19:35
blueberry #110 workaround
# /home/hxss/.config/systemd/user/blueberry-tray.service
[Unit]
Description=Blueberry tray icon
After=graphical-session.target
After=bluetooth.target
[Service]
Type=forking
ExecStart=blueberry-tray
@hxss
hxss / 0.hibernation
Last active January 10, 2022 08:44
booster hibernate
-- Journal begins at Thu 2021-12-09 23:47:40 MSK, ends at Mon 2022-01-10 11:40:17 MSK. --
2022-01-10T11:32:12+0300 hp kernel: Linux version 5.15.10-zen1-1-zen (linux-zen@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 ZEN SMP PREEMPT Fri, 17 Dec 2021 11:17:39 +0000
2022-01-10T11:32:12+0300 hp kernel: Command line: root=PARTUUID=50173cf6-3018-4924-8b91-a5e5d6e273ae rw i8042.nopnp=1 initrd=\amd-ucode.img quiet initrd=\booster-linux-zen.img resume=UUID=ca30eb5c-6d2b-435e-a04b-df49c8954ad8 booster.log=debug
2022-01-10T11:32:12+0300 hp kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
2022-01-10T11:32:12+0300 hp kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
2022-01-10T11:32:12+0300 hp kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
2022-01-10T11:32:12+0300 hp kernel: x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
2022-01-10T11:32:12+0300 hp kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
2022-
@hxss
hxss / 0.booster.log
Last active December 18, 2021 21:56
booster amdgpu issuev #120
-- Journal begins at Thu 2021-12-09 23:47:40 MSK, ends at Sun 2021-12-19 00:54:15 MSK. --
Dec 19 00:52:57.948532 hp kernel: Linux version 5.15.6-zen2-1-zen (linux-zen@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 ZEN SMP PREEMPT Thu, 02 Dec 2021 15:47:07 +0000
Dec 19 00:52:57.948551 hp kernel: Command line: root=PARTUUID=50173cf6-3018-4924-8b91-a5e5d6e273ae rw i8042.nopnp=1 initrd=\amd-ucode.img booster.log=info,console initrd=\booster-linux-zen.img
Dec 19 00:52:57.948558 hp kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Dec 19 00:52:57.948563 hp kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Dec 19 00:52:57.948568 hp kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Dec 19 00:52:57.948573 hp kernel: x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
Dec 19 00:52:57.948579 hp kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
Dec 19 00:52:57.948583 hp kernel: x86/fpu: xstate_offset[9]: 832, x
@hxss
hxss / 0.booster.boot.log
Last active December 15, 2021 18:50
boot speedup
2021-12-15T21:12:55 MSK
Startup finished in 4.189s (firmware) + 22ms (loader) + 425ms (kernel) + 157ms (initrd) + 10.075s (userspace) = 14.870s
graphical.target reached after 10.075s in userspace
[ 1.015284] iwlwifi 0000:01:00.0: enabling device (0000 -> 0002)
2021-12-15T21:17:52 MSK
Startup finished in 4.156s (firmware) + 22ms (loader) + 407ms (kernel) + 153ms (initrd) + 10.247s (userspace) = 14.988s
graphical.target reached after 10.247s in userspace
[ 0.969465] iwlwifi 0000:01:00.0: enabling device (0000 -> 0002)
@hxss
hxss / cryptography-test.py
Last active March 19, 2021 00:12
python cryptography encrypt pem issue
#!/usr/bin/python
from cryptography.hazmat.primitives import (
serialization,
hashes,
)
from cryptography.hazmat.primitives.asymmetric import (
rsa,
padding,
)
@hxss
hxss / bluetooth.service.chrome.log
Created April 26, 2020 15:26
powerbeats-mpris-avrcp-volume-control
16:46:04 [hxss@lenovo] # sudo jrc -u bluetooth.service -f [~]
[sudo] password for hxss:
-- Logs begin at Thu 2018-11-08 20:47:36 MSK. --
2020-04-26T16:46:01+0300 lenovo bluetoothd[7247]: profiles/audio/a2dp.c:suspend_cfm() Source 0x55ad2b5b3db0: Suspend_Cfm
2020-04-26T16:46:01+0300 lenovo bluetoothd[7247]: profiles/audio/transport.c:media_request_reply() Request Release Reply Success
2020-04-26T16:46:01+0300 lenovo bluetoothd[7247]: profiles/audio/transport.c:media_owner_remove() Owner :1.1778 Request Release
2020-04-26T16:46:01+0300 lenovo bluetoothd[7247]: profiles/audio/a2dp.c:a2dp_sep_unlock() SEP 0x55ad2b5b3db0 unlocked
2020-04-26T16:46:01+0300 lenovo bluetoothd[7247]: profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_4C_6B_E8_0C_A7_40/sep2/fd0: TRANSPORT_STATE_SUSPENDING -> TRANSPORT_STATE_IDLE
2020-04-26T16:46:01+0300 lenovo bluetoothd[7247]: profiles/audio/transport.c:media_t
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.16.13-2-ARCH] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Scorpio Blue Serial ATA (AF)
Device Model: WDC WD3200BPVT-22JJ5T0
Serial Number: WD-WXR1EB0ZDH64
LU WWN Device Id: 5 0014ee 601b4f0aa
Firmware Version: 01.01A01
User Capacity: 320,072,933,376 bytes [320 GB]