Skip to content

Instantly share code, notes, and snippets.

View ssergiienko's full-sized avatar

Stanislav ssergiienko

View GitHub Profile
@ssergiienko
ssergiienko / nanorc
Created March 12, 2017 14:24
nanorc
## Sample initialization file for GNU nano.
##
## Please note that you must have configured nano with --enable-nanorc
## for this file to be read! Also note that this file should not be in
## DOS or Mac format, and that characters specially interpreted by the
## shell should not be escaped here.
##
## To make sure an option is disabled, use "unset <option>".
##
## For the options that take parameters, the default value is given.
# tlp-stat
--- TLP 1.0 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
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
# tlp-stat
--- TLP 1.0 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
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
# tlp-stat
--- TLP 0.9 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
# tlp-stat
--- TLP 0.9 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
@ssergiienko
ssergiienko / yay-makepkg.sh
Created June 5, 2021 22:17
Yay makepkg wrapper to export packages to /var/cache/pacman/pkg like yaourt did
#!/usr/bin/bash
# Setup this wrapper with
# > yay --makepkg ~/path/yay-makepkg --save
#echo "WRAPPER DEBUG OPTS: $@" >&2
makepkg "$@"
rc=$?