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
#!/bin/bash | |
set -eo pipefail | |
# NOTES: | |
# to use on backup files created by Google Takeout: https://support.google.com/accounts/answer/3024190?hl=en | |
# creates lists of top N mail senders & distribution-lists @ /tmp | |
# can be used to create Google Vault retentions to clean-up old mails or spam: https://support.google.com/vault/answer/2990828?hl=en | |
if [-z "$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
#!/bin/bash | |
# Requirements: go-mtpfs, rsync, fuse2 | |
MUSICDIR="/home/<USER>/Music/" | |
DEVICEMUSICDIR="/mnt/ak70/Internal storage/Music/" | |
MOUNTPOINT="/mnt/ak70/" | |
print_usage() { | |
echo "Usage: $0 mount|umount|drysync|fullsync|hardsync|sync" |
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 | |
import csv | |
import beets.library | |
from termcolor import colored | |
import beets.ui | |
LIBRARYDB = '/home/MYUSER/.config/beets/library.db' | |
EXPORTIFY_CSV = './spotify.csv' |
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/bash | |
DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus | |
export XDG_RUNTIME_DIR="/run/user/1000" | |
HOSTNAME=$(uname -n) | |
NTFY_TOPIC="your notify.sh topic here" | |
acpi -b | awk -F'[,%]' '{print $2, $4, $5}' | { | |
read -r capacity timeleft status |
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/bash | |
# ------------------------------------------------------------------------------ | |
# [INFO] | |
# If you are not registered as sudoers, you will be asked for your password. | |
# ------------------------------------------------------------------------------ | |
echo "🚀 A setup scripts for Ubuntu Desktop 22.04 LTS." | |
# ------------------------------------------------------------------------------ |
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 | |
# Inspired by https://steveblock.com/moode-bluetooth-codecs/ | |
# and his post at https://moodeaudio.org/forum/showthread.php?tid=3683 | |
# with an extra sprinkle of https://github.com/anonymix007/libldacdec | |
# and built with latest dependencies on moOde 8.3.2 on rpi zero W | |
# | |
# Currently having issues with LDAC itself | |
LDAC_INCLUDE_DIR=/usr/include/ldac |
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 | |
# | |
# Script is a mini version of https://github.com/jules-ch/Ubuntu20-Setup-XPS13/blob/master/setup.sh | |
set -ex | |
# Get the Ubuntu version installed | |
DISTRO_VER=$(lsb_release -r -s) | |
LOGIN_USER=$(logname) |
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 DEPENDENCY_CHECKS { | |
for dep in $@; do | |
if ! hash "$dep" 2>/dev/null 1>&2; then echo "$dep not found in \$PATH. Abort." && exit 1; fi | |
done | |
} | |
DEPENDENCY_CHECKS mpc | |
MPC_OPTS="--port 6601" |
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
/** | |
* EXAMPLE: https://developers.google.com/calendar/api/quickstart/apps-script | |
* @see https://developers.google.com/calendar/api/v3/reference/events/list | |
* | |
* | |
* Sun rise and set API: https://sunrise-sunset.org/api | |
* | |
*/ | |
function populateCalSunRiseNSet() { |
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
#!/bin/bash | |
#sudo systemctl start bluetooth.service | |
connect() { | |
bluetoothstatus=`bluetooth | cut -c 13-` | |
if [ "$bluetoothstatus" == "off" ]; then | |
bluetooth on |
NewerOlder