- Do
sudo su
- Copy-paste the script (it will reboot the machine)
NOTE: I am using with with Vagrat's shell provisioner as it is easier (with privileged execution).
#!/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" ] |
import requests | |
import os | |
import argparse | |
from collections import defaultdict | |
# I have photos in subfolders like : | |
# /mnt/media/Photos/2023-08 Holidays | |
# /mnt/media/Photos/2023-06 Birthday | |
# /mnt/media/Photos/2022-12 Christmas |
import os | |
import re | |
import io | |
from googleapiclient.discovery import build | |
from googleapiclient.http import MediaIoBaseDownload | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request | |
from google.oauth2.credentials import Credentials | |
#!/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" |
#!/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' |
#!/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 |
#!/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 is a anonymized version of the script I use to renew all my SSL certs | |
# across my servers. This will not work out of the box for anyone as your network will be | |
# different. But may be useful starting place for others. | |
# | |
# I use a cronjob that runs this every week. It only replaces certificates when a certificate has been renewed. | |
# Renews/creates cert from letsencrypt & places it where it needs to be. | |
# Currently, that is: | |
# * Nginx (local for plex) | |
# * Plex Media Server |
#!/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 |