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
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 |
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 | |
#------------------------------------------------------# | |
# This script was tested on Ubuntu 20.04 and newer # | |
# # | |
# This script cleans up the SQLite database, plaintext # | |
# files and uploaded files # | |
#------------------------------------------------------# | |
#-------------------------------------------------------------------------------------# |
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
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 | |
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
// ==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/* |
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 | |
# 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 |
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 | |
# 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, |
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 | |
# 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' |
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
--- | |
esphome: | |
name: doorbell | |
platform: ESP8266 | |
board: esp01_1m | |
# WiFi connection, correct these | |
# with values for your WiFi. | |
wifi: | |
ssid: !secret wifi_ssid |
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 |
NewerOlder