Skip to content

Instantly share code, notes, and snippets.

View bonelifer's full-sized avatar

William Jacoby bonelifer

View GitHub Profile
@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
@lbmaian
lbmaian / youtube-hide-livechat.user.js
Last active March 13, 2024 04:02
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/*
@AfroThundr3007730
AfroThundr3007730 / sysprep_linux.sh
Last active March 5, 2024 05:28
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
AUTHOR='AfroThundr'
BASENAME="${0##*/}"
MODIFIED='20240304'
VERSION='1.8.3'
@catrincm
catrincm / weeklyAgenda.gs
Last active February 26, 2024 14:38
Email yourself weekly calendar agenda with google apps script
EMAILRECIPIANT = "myemail@gmail.com";
function agendaEmail() {
let dateOptions = { weekday: 'long', month: 'long', day: 'numeric'};
let timeOptions = { hour12:true, hour:'numeric', minute:'numeric'};
var StartDate = new Date();
@sboettcher
sboettcher / FF57+RoomyBookmarksToolbar.md
Last active February 26, 2024 07:10
Firefox Quantum Roomy Bookmarks Toolbar

Firefox Config

Before adding the userChrome.css, you must enable loading it in the Firefox config (Firefox 69+):

  • In Firefox, browse to about:config (accept the warning prompt)
  • search for toolkit.legacyUserProfileCustomizations.stylesheets
  • double click the entry so it says true

Profile Folder

Here is how to find your Firefox profile folder:

  • Windows Default: %APPDATA%\Mozilla\Firefox\Profiles\xxxxxxxx.default\
  • Ubuntu Default (apt): ~/.mozilla/firefox/xxxxxxxx.default/
@sebble
sebble / stars.sh
Last active February 17, 2024 16:49
List all starred repositories of a GitHub user.
#!/bin/bash
USER=${1:-sebble}
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-)
PAGES=$((658/100+1))
echo You have $STARS starred repositories.
echo
@sayoder
sayoder / ak70.sh
Last active January 28, 2024 03:35
rsync to Astell&Kern AK70 over mtp
#!/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/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)
@frenck
frenck / doorbell.yaml
Last active January 8, 2024 16:07
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