This file contains hidden or 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
| SELECT table_schema AS `Database`, | |
| table_name AS `Table`, | |
| FORMAT(table_rows, 'en_US') AS `Rows`, | |
| CONCAT(IF(data_size / POWER(1024, 3) < 1, FORMAT(data_size / POWER(1024, 2), 0), | |
| FORMAT(data_size / POWER(1024, 3), 2)), IF(data_size / POWER(1024, 3) < 1, 'MB', 'GB')) AS `Data`, | |
| CONCAT(IF(index_size / POWER(1024, 3) < 1, FORMAT(index_size / POWER(1024, 2), 0), | |
| FORMAT(index_size / POWER(1024, 3), 2)), IF(index_size / POWER(1024, 3) < 1, 'MB', 'GB')) AS `Indexes`, | |
| CONCAT(IF(total_size / POWER(1024, 3) < 1, FORMAT(total_size / POWER(1024, 2), 0), | |
| FORMAT(total_size / POWER(1024, 3), 2)), IF(total_size / POWER(1024, 3) < 1, 'MB', 'GB')) AS `Total` | |
| FROM (SELECT table_schema, |
This file contains hidden or 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
| blueprint: | |
| name: IKEA Somrig Controls (Z2M) | |
| description: "## Control anything with IKEA Somrig Dimmer remote (v1.0) | |
| Only for use with Zigbee2MQTT ([MQTT](https://www.home-assistant.io/integrations/mqtt) | |
| + [Z2M addon](https://www.zigbee2mqtt.io/guide/installation/03_ha_addon.html)). | |
| Adapted from https://gist.github.com/damru/b2c1c780ffb0ddc084952eb89db9573a |
This file contains hidden or 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 | |
| # Initialize variables | |
| declare -a hostnames | |
| api_key="" | |
| # Function to display usage | |
| usage() { | |
| echo "Usage: $0 --hostname domain1.com [--hostname domain2.com ...] [--api-key YOUR_API_KEY]" | |
| echo |
This file contains hidden or 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
| <?php | |
| declare(strict_types=1); | |
| namespace App\Tests; | |
| use Symfony\Component\Dotenv\Dotenv; | |
| use Symfony\Component\Process\Process; | |
| use function dirname; |
This file contains hidden or 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
| <?php | |
| /** | |
| * Hydrates an object — or instantiates a class and hydrates it — from an associative array. | |
| * | |
| * When a class-string is given, promoted constructor properties present in $props are | |
| * forwarded to the constructor (the only way to set readonly properties); the remaining | |
| * props are assigned after instantiation. | |
| * | |
| * @template T of object |
OlderNewer