Skip to content

Instantly share code, notes, and snippets.

View bonelifer's full-sized avatar

William Jacoby bonelifer

View GitHub Profile
@Salvoxia
Salvoxia / immich_auto_album.py
Last active May 1, 2024 16:40 — forked from REDVM/immich_auto_album.py
Create and populate albums on Immich based on folder name (comaptible with Immich v1.95.x), moved to here: https://github.com/Salvoxia/immich-folder-album-creator
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
@TehPeGaSuS
TehPeGaSuS / thelounge_purge.sh
Last active April 28, 2024 20:53
Some useful stuff to use with The Lounge
#!/usr/bin/env bash
#------------------------------------------------------#
# This script was tested on Ubuntu 20.04 and newer #
# #
# This script cleans up the SQLite database, plaintext #
# files and uploaded files #
#------------------------------------------------------#
#-------------------------------------------------------------------------------------#
@brett-fitz
brett-fitz / google-drive-backup.py
Created January 26, 2024 15:51
Google Drive download all my items and those that are shared with me
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
@NiceRath
NiceRath / google_takeout_mail_analysis.sh
Created April 17, 2024 10:52
Script to analyze Google Workspace/Gmail Mailboxes (Mailing Lists, Top Senders)
#!/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" ]
@lbmaian
lbmaian / youtube-hide-livechat.user.js
Last active April 17, 2024 11:41
YouTube - Hide Live Chat By Default
// ==UserScript==
// @name YouTube - Hide Live Chat By Default
// @namespace https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c
// @downloadURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js
// @updateURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js
// @version 0.14
// @description Hide live chat by default on live streams
// @author lbmaian
// @match https://www.youtube.com/*
// @exclude https://www.youtube.com/embed/*
@mss
mss / zoom-pulse-prop-media-role-phone-wrapper-installer.sh
Last active April 16, 2024 08:11
Make the Ubuntu Zoom client automatically switch Bluetooth headset profiles to HSP/HFP
#!/bin/bash
# This is a hack to make Bluetooth headests like the jabra Evolve 65 actually
# work as a headset with the Linux (Ubuntu/Debian) Zoom client without having
# to switch manually from A2DP to the HSP/HFP profile.
#
# This is done by injecting an environment variable which makes PulseAudio
# recognize the application as a telephony/voice application as described
# here:
# * https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Bluetooth/#profiles
# * https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties/#pa_prop_media_role
@kmdouglass
kmdouglass / create_image.sh
Created March 25, 2018 12:06
Creates a chroot environment for creating custom Raspbian images and cross-compiling programs for the Raspberry Pi.
#!/bin/bash
# Creates a custom Raspbian image and cross-compilation environment.
#
# USAGE: ./create_image.sh
#
# This script must be run as either root or sudo.
#
# After creating the chroot environment, the script specified in the
# *script* variable will be executed from within the chroot. Your
# custom system setup commands should be located here. For example,
@AfroThundr3007730
AfroThundr3007730 / sysprep_linux.sh
Last active April 9, 2024 20:35
Cloning preparation script for linux systems.
#!/bin/bash
# Does the equivalent of sysprep for linux boxes to prepare them for cloning.
# Based on https://lonesysadmin.net/2013/03/26/preparing-linux-template-vms/
# For issues or updated versions of this script, browse to the following URL:
# https://gist.github.com/AfroThundr3007730/ff5229c5b1f9a018091b14ceac95aa55
# SPDX-License-Identifier: GPL-3.0-or-later
AUTHOR='AfroThundr'
BASENAME="${0##*/}"
MODIFIED='20240409'
@frenck
frenck / doorbell.yaml
Last active March 31, 2024 13:29
Blog: For just $2, convert any existing wired doorbell into a smart doorbell; using ESPHome and Home Assistant: https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/
---
esphome:
name: doorbell
platform: ESP8266
board: esp01_1m
# WiFi connection, correct these
# with values for your WiFi.
wifi:
ssid: !secret wifi_ssid
@sydragos
sydragos / bt_moode.sh
Last active March 16, 2024 04:42
Adding Additional Bluetooth Codec Support to Moode
#!/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