--- 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/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 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 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 | |
# Grab a screen shot of a window correct scaled for use in the | |
# Ubuntu Ubiquity slide shows. | |
RES_X=896 | |
RES_Y=702 | |
# Get the window we want to resize | |
TMP_XWININFO=$(mktemp -u) | |
echo -e "Please select the window you\nwould like to screenshot by clicking the\nmouse in that window." |
Install mini.iso in a VirtualBox VM. When prompted, don't install any additional tasks when prompted. You'll end up with a very trim console only install.
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" |
NewerOlder