Skip to content

Instantly share code, notes, and snippets.

View mmoollllee's full-sized avatar
🏁
Using SSGs now.. But I like my Wordpress Workflow

Moritz Graf mmoollllee

🏁
Using SSGs now.. But I like my Wordpress Workflow
  • Freelancer
  • Germany
View GitHub Profile
@mmoollllee
mmoollllee / lifepo4wered.py
Last active June 19, 2024 19:11
Some python functions to control the [LiFePO4wered/Pi+](https://github.com/xorbit/LiFePO4wered-Pi)
# LiFePO4wered access Python module
# Copyright (c) 2017 Patrick Van Oosterwijck
from ctypes import cdll
import humanized_opening_hours as hoh
from datetime import datetime, timedelta
import time, multiprocessing
import os.path
from typing import Union
@mmoollllee
mmoollllee / witty_voltage.sh
Last active June 17, 2024 13:47
Read Input Voltage from UUGears Witty Pi 4 on RaspberryPi
#!/bin/bash
# Read voltage from i2c if Wittypi is mounted
# run with `bash witty_voltage.sh`
readonly I2C_MC_ADDRESS=0x08
readonly I2C_VOLTAGE_IN_I=1
readonly I2C_VOLTAGE_IN_D=2
i2c_read()
{
@mmoollllee
mmoollllee / vendor--cookieconsent.js
Last active July 19, 2022 15:24
Osano Cookie Consent Opt-In Example with Google Analytics & Leadfeeder
/**
* To use this one, you need https://github.com/osano/cookieconsent/tree/master or https://www.osano.com/cookieconsent/download/
* Example: https://3sechzig.eu/
*/
window.addEventListener("load", function () {
/**
* Hide Privacy Controls on Privacy-Page.
* Privacy Controls might look like this: