Skip to content

Instantly share code, notes, and snippets.

@BarbUk
BarbUk / ac
Created January 9, 2020 06:37
--- TLP 1.3.0-beta.2 --------------------------------------------
+++ Configured Settings:
TLP_ENABLE="1"
TLP_PERSISTENT_DEFAULT="0"
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"
CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
--- TLP 1.2.1.901 --------------------------------------------
+++ 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
MAX_LOST_WORK_SECS_ON_BAT=60
@BarbUk
BarbUk / snippy.sh
Last active May 23, 2018 14:05 — forked from coderofsalvation/snippy.sh
modified version of snippy which features easier installation, follows symlinks, bashdown templates and automatic detection of cli vs window
#!/usr/bin/env bash
# video demo at: http://www.youtube.com/watch?v=90xoathBYfk
# augmented by barbuk: https://github.com/BarbUk/dotfiles/blob/master/bin/snippy
# . restore current clipboard
# . {clipboard} placeholder to use current clipboard in snippet
# . {cursor} placeholder to place the cursor
# . ##noparse header in snippet to not parse
# . execute command begining by $
#
@BarbUk
BarbUk / ixgbe_debian.md
Last active January 24, 2018 06:48 — forked from kslimani/ixgbe_debian.md
Debian ixgbe module compilation
@BarbUk
BarbUk / copyq
Last active December 14, 2023 19:52
Albert (https://github.com/albertlauncher/albert) external plugin to for copyq integration
#!/bin/bash
copyq_get_row(){
local copyq_row="$(copyq read $1 | head -1 | sed -e 's/^[[:space:]]*//')"
# clean from non compatible json char
printf -v clean_copyq_row "%q" "$copyq_row"
echo -n "$clean_copyq_row"
}

Keybase proof

I hereby claim:

  • I am barbuk on github.
  • I am barbuk (https://keybase.io/barbuk) on keybase.
  • I have a public key whose fingerprint is 9F59 A495 68EE 372A F17E 5452 B6D0 1F84 A751 9939

To claim this, I am signing this object: