Skip to content

Instantly share code, notes, and snippets.

View x-magic's full-sized avatar
😀
Happy

Bill Haofei Gong x-magic

😀
Happy
View GitHub Profile
@x-magic
x-magic / mariadb_tzdata.md
Last active October 8, 2023 12:54 — forked from brianburridge/gist:11298396
How to load MySQL/MariaDB time zone tables from macOS tzdata files

The easiest way to load the MySQL Time Zone tables from your macOS tzdata is via this command:

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql

Once the file is imported, you'll need to restart MySQL or MariaDB:

# Determine if you have MySQL or MariaDB
brew list
@x-magic
x-magic / ikea_open_close_remote.yaml
Last active February 15, 2024 18:20 — forked from r3mcos3/ikea_open_close_remote.yaml
Home Assistant Blueprint For ZHA IKEA Open/Close Remote
blueprint:
name: IKEA Open/Close Remote
description: 'Control your roller blind with an IKEA 2 button square remote which comes with "Fytur" or " Kadrilj" roller blinds.'
domain: automation
input:
remote:
name: Remote
description: IKEA remote to use
selector:
device: