--- TLP 1.3.1 --------------------------------------------
+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0006: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0008: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_BAT="60"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
#http://people.ubuntu.com/~robert-ancell/snapd-glib/reference/index.html | |
import getpass | |
import gi | |
import json | |
import os | |
import sys | |
gi.require_version ('Snapd', '1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -f build-settings.sh ]; then | |
source build-settings.sh | |
else | |
echo "ERROR! Could not source build-settings.sh." | |
exit 1 | |
fi | |
SEED_DIR="/var/lib/snapd/seed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "ERROR! Must be root." | |
exit 1 | |
fi | |
export GOPATH="/tmp/go" | |
if [ -d "${GOPATH}" ]; then | |
rm -rf "${GOPATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TWITCH_CHANNEL="wimpysworld" | |
METRICS_PATH="${HOME}/Studio/OBS/twitch-metrics" | |
mkdir -p "${METRICS_PATH}" | |
for ENDPOINT in $(wget -q https://decapi.net/twitch/ -O - | jq -r '[.endpoints[] | select(contains("CHANNEL")) | select(contains("USER") | not)] | @tsv'); do | |
ENDPOINT_NAME=$(echo "${ENDPOINT}" | cut -d'/' -f5) | |
ENDPOINT_URL="${ENDPOINT//\{CHANNEL\}/${TWITCH_CHANNEL}}" | |
# Get the 5 most recent followers and skip deprecated endpoints. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import http.server | |
import signal | |
import socketserver | |
import subprocess | |
import sys | |
from urllib.parse import urlparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function get_dockerslim() { | |
local DIST="" | |
local EXT="" | |
local FILENAME="" | |
local KERNEL="" | |
local MACHINE="" | |
local TMP_DIR="" | |
local URL="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# The format of the input data file is as follows: | |
# | |
# Name, Emoji Country Flag, Space seperated race finishes | |
# | |
# For example: | |
# | |
# Wimpy,🇬🇧,1 2 3 3 4 | |
# popey,🇬🇧,2 3 1 2 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SCREENS=$(xrandr --query | grep connected | grep -v disconnected | cut -d' ' -f1) | |
INTERNAL=$(echo ${SCREENS} | grep eDP-1-1) | |
RET=$? | |
if [ ${RET} -eq 0 ]; then | |
echo "Internal panel detected." | |
xrandr --output eDP-1-1 --auto | |
exit | |
fi |
NewerOlder