Skip to content

Instantly share code, notes, and snippets.

View demokritos's full-sized avatar

Taegil Bae demokritos

View GitHub Profile
--- TLP 1.1 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_DEBUG="usb"
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
4월 13 19:17:54 kernel: microcode: microcode updated early to revision 0x1f, date = 2018-02-07
4월 13 19:17:54 kernel: Linux version 4.16.2-1-ARCH (builduser@heftig-2427) (gcc version 7.3.1 20180406 (GCC)) #1 SMP PREEMPT Thu Apr 12 13:51:26 UTC 2018
4월 13 19:17:54 kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/arch_vg-root rw
4월 13 19:17:54 kernel: KERNEL supported cpus:
4월 13 19:17:54 kernel: Intel GenuineIntel
4월 13 19:17:54 kernel: AMD AuthenticAMD
4월 13 19:17:54 kernel: Centaur CentaurHauls
4월 13 19:17:54 kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
4월 13 19:17:54 kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
4월 13 19:17:54 kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
@demokritos
demokritos / gnus-smtp-oauth2-goa.el
Last active May 6, 2021 11:56
IMAP and SMTP authentication with GnomeOnlineAccounts in Emacs
(defun get-access-token-by-user (user)
(let ((objects
(dbus-get-all-managed-objects :session "org.gnome.OnlineAccounts" "/"))
thepath)
(setq thepath
(car
(seq-find
(lambda (obj)
(let ((mail-interface
(assoc "org.gnome.OnlineAccounts.Mail" obj)))