Skip to content

Instantly share code, notes, and snippets.

@supaeasy
supaeasy / tandoor-list.py
Created March 27, 2026 20:28
Tandoor 2.5.x Shopping List to Bring! Importer via Home Assistant (uses HA Bring! Integration and HACS pyscript)
import requests
from decimal import Decimal
@pyscript_compile
def make_request(url, headers, method='GET', data=None):
if method == 'GET':
response = requests.get(url, headers=headers)
elif method == 'PATCH':
response = requests.patch(url, headers=headers, json=data)
elif method == 'POST':
@supaeasy
supaeasy / enterprise_token.rb
Created May 13, 2025 07:06 — forked from markasoftware/enterprise_token.rb
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@supaeasy
supaeasy / 99-install-facetime-camera.sh
Created February 11, 2021 23:42 — forked from ukn/99-install-facetime-camera.sh
Install the kernal module required for the facetimehd camera to work on Linux
#!/bin/bash
set -e
export CONFIG_MODULE_SIG=n
export CONFIG_MODULE_SIG_ALL=n
# For current kernel
export KERNELRELEASE=$(cat /proc/version | awk '{print $3}')
temp_dir=$(mktemp -d)
echo "Installing FacetimeHD camera for $KERNELRELEASE"