Discover gists
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: Occupancy | |
description: | | |
This blueprint implements the 'Wasp in a Box' principle, a method for detecting room occupancy based on motion and door sensors. It was inspired by an AppDaemon app with a similar approach. | |
You can find more information about this blueprint on the Home Assistant Community: https://community.home-assistant.io/t/occupancy-blueprint/477772 | |
domain: automation | |
source_url: https://gist.github.com/FrankTub/ba9af2b147a8b6795d9b93299a82aab1 | |
input: | |
door_sensor: | |
name: Single Door Sensor or Door Sensor Group |
This file has been truncated, but you can view the full file.
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
['Symbol'] | |
['Symbol'] | |
['Symbol'] | |
['Symbol'] | |
['Symbol'] | |
['Symbol'] | |
['Symbol'] | |
['Symbol'] | |
['Symbol'] |
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
<!-- Snippet for the collector configuration --> | |
<service name="Prometheus-Enphase-Collector" interval="300000" user-defined="false" status="on"> | |
<parameter key="collection" value="enphase_collector"/> | |
<parameter key="thresholding-enabled" value="true"/> | |
<parameter key="url" value="http://${interface:address}:8080/solar/actuator/prometheus"/> | |
</service> | |
<!-- Add the collector at the end --> | |
<collector service="Prometheus-Enphase-Collector" class-name="org.opennms.netmgt.collectd.prometheus.PrometheusCollector"/> |
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
id | station | stationid | value | unit | obstime | date | |
---|---|---|---|---|---|---|---|
0 | 流浮山 | RF001 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 | |
1 | 湿地公园 | RF002 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 | |
2 | 水边围 | N12 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 | |
3 | 石岗 | RF003 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 | |
4 | 大美督 | RF004 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 | |
5 | 大埔墟 | RF005 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 | |
6 | 北潭涌 | RF006 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 | |
7 | 滘西洲 | RF007 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 | |
8 | 西贡 | N15 | 0 | mm | 2025-07-02T20:30:00+08:00 | 2025-07-02 |
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
const sqlite3 = require('sqlite3').verbose(); | |
const path = require('path'); | |
const dbPath = path.join(__dirname, 'chamados.db'); | |
const db = new sqlite3.Database(dbPath); | |
db.serialize(() => { | |
db.run(`CREATE TABLE IF NOT EXISTS chamados ( | |
id INTEGER PRIMARY KEY AUTOINCREMENT, | |
titulo TEXT, |
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
Log uploaded on Wednesday, July 2, 2025, 8:49:09 PM | |
Loaded mods: | |
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0) | |
Harmony(brrainz.harmony)[mv:2.3.4.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Performance Fish(bs.performance): PerformanceFish(0.6.2) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) |
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
2025-07-02 12:06:30,204 980 [DEBUG] - XmlConfiguration is now operational | |
2025-07-02 12:06:42,105 980 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-07-02 12:06:42,333 980 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-07-02 12:06:42,394 980 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-07-02 12:06:42,637 980 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco' | |
2025-07-02 12:06:42,776 980 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-07-02 12:06:42,855 980 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco' | |
2025-07-02 12:06:43,027 980 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-07-02 12:06:43,268 980 [DEBUG] - Adding new type 'RubyGe |
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
░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░ | |
░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▒▒▓▒▒▒▒▒▒▒░░░ | |
░░▒▒▒▒▒▒▒▓▓▓▒▒▓▒▒▓▒▒▒▓▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ | |
░░░▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▓▒▒▒▓▒▒▒▒▓▒▒▒▒▓▒▒▒▒▓▒▒▒▒▒▒▒▓▒▒▒░░░░ | |
░░▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▓▒▒▒▒▒▓▒▒▒▒▒░░ | |
▒▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▓▒▒▒▒▒▒▓▓▒▒▒▒░ | |
░▒▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▓▒▒▒▒▓▒▓▓█████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒░░ | |
░▒▒▒▒▒▒▒▒▒▒▓▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▓░░░░░░░░░░░░░▓█▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ | |
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▓▒▒▒▒▒▒█░░░░░░░░░░░░░░░░░░░░░▓▓▒▒▒▒▒▓▒▒▒▒▓▒▒▒▒▒▒▒▒▒░ |
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
apply plugin: 'project-report' | |
tasks.withType(HtmlDependencyReportTask).configureEach { | |
// For the aggregate “projectReport” task | |
projects = project.allprojects | |
} | |
// to lunch run from project root | |
// $ ./gradlew htmlDependencyReport | |
// More info at https://docs.gradle.org/current/userguide/project_report_plugin.html |
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 | |
// Force deactivate all Jetpack modules, except for stats | |
function jeherve_force_deactivate_everything_but_stats() { | |
if ( class_exists( 'Jetpack_Options' ) ) | |
Jetpack_Options::update_option( 'active_modules', array_unique( array( 'stats' ) ) ); | |
} | |
add_action( 'init', 'jeherve_force_deactivate_everything_but_stats' ); |
NewerOlder