Skip to content

Instantly share code, notes, and snippets.

View SilverPhoenix99's full-sized avatar

Pedro Pinto SilverPhoenix99

  • London, United Kingdom
View GitHub Profile
@SilverPhoenix99
SilverPhoenix99 / module-error-handling.ps1
Last active August 31, 2025 17:04
PowerShell Error Handling in Modules
function Invoke-MyModuleFunction {
[CmdletBinding()]
param()
$callerErrorActionPreference = $ErrorActionPreference
$ErrorActionPreference = [Management.Automation.ActionPreference]::Stop
try {
Perform-Action 1
@SilverPhoenix99
SilverPhoenix99 / 1.35.1_1.log
Last active February 7, 2024 23:51
zigbee2mqtt-2024-02-07
This file has been truncated, but you can view the full file.
Using '/app/data' as data directory
Zigbee2MQTT:debug 2024-02-07 13:43:57: Loaded state from file /app/data/state.json
Zigbee2MQTT:info 2024-02-07 13:43:57: Logging to console and directory: '/app/data/log/2024-02-07.13-43-57' filename: log.txt
Zigbee2MQTT:debug 2024-02-07 13:43:57: Removing old log directory '/app/data/log/2024-02-03.11-42-27'
Zigbee2MQTT:info 2024-02-07 13:43:57: Starting Zigbee2MQTT version 1.35.1 (commit #9eaaa0f)
Zigbee2MQTT:info 2024-02-07 13:43:57: Starting zigbee-herdsman (0.30.0)
Zigbee2MQTT:debug 2024-02-07 13:43:57: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/app/data/coordinator_backup.json","databaseBackupPath":"/app/data/database.db.backup","databasePath":"/app/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/ttyACM0"}}'
2024-02-07T13:43:58.026Z zigbee-herdsman:adapter Path '/
@SilverPhoenix99
SilverPhoenix99 / zigbee2mqtt-2024-02-07.09-36-16.log
Created February 7, 2024 12:30
zigbee2mqtt-2024-02-07.09-36-16.log
This file has been truncated, but you can view the full file.
Zigbee2MQTT:debug 2024-02-07 08:37:02: Loaded state from file /app/data/state.json
Zigbee2MQTT:info 2024-02-07 08:37:02: Logging to console and directory: '/app/data/log/2024-02-07.08-37-02' filename: log.txt
Zigbee2MQTT:debug 2024-02-07 08:37:02: Removing old log directory '/app/data/log/2024-01-27.07-53-36'
Zigbee2MQTT:info 2024-02-07 08:37:02: Starting Zigbee2MQTT version 1.35.2-dev (commit #3d37892)
Zigbee2MQTT:info 2024-02-07 08:37:02: Starting zigbee-herdsman (0.33.7)
Zigbee2MQTT:debug 2024-02-07 08:37:02: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/app/data/coordinator_backup.json","databaseBackupPath":"/app/data/database.db.backup","databasePath":"/app/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/ttyACM0"}}'
2024-02-07T08:37:02.867Z zigbee-herdsman:adapter Path '/dev/ttyACM0' is valid for 'Decon
@SilverPhoenix99
SilverPhoenix99 / zigbee2mqtt-2024-02-04.00-23-36.log
Created February 4, 2024 00:44
zigbee2mqtt-2024-02-04.00-23-36.log
This file has been truncated, but you can view the full file.
Zigbee2MQTT:debug 2024-02-04 00:23:36: Loaded state from file /app/data/state.json
Zigbee2MQTT:info 2024-02-04 00:23:36: Logging to console and directory: '/app/data/log/2024-02-04.00-23-36' filename: log.txt
Zigbee2MQTT:debug 2024-02-04 00:23:36: Removing old log directory '/app/data/log/2024-01-20.10-28-11'
Zigbee2MQTT:info 2024-02-04 00:23:36: Starting Zigbee2MQTT version 1.35.2 (commit #06b3395)
Zigbee2MQTT:info 2024-02-04 00:23:36: Starting zigbee-herdsman (0.30.0)
Zigbee2MQTT:debug 2024-02-04 00:23:36: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/app/data/coordinator_backup.json","databaseBackupPath":"/app/data/database.db.backup","databasePath":"/app/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/ttyACM0"}}'
2024-02-04T00:23:36.954Z zigbee-herdsman:adapter Path '/dev/ttyACM0' is valid for 'DeconzAda
This file has been truncated, but you can view the full file.
Using '/app/data' as data directory
Zigbee2MQTT:debug 2024-02-03 13:01:37: Loaded state from file /app/data/state.json
Zigbee2MQTT:info 2024-02-03 13:01:37: Logging to console and directory: '/app/data/log/2024-02-03.13-01-37' filename: log.txt
Zigbee2MQTT:debug 2024-02-03 13:01:37: Removing old log directory '/app/data/log/2024-01-19.14-17-35'
Zigbee2MQTT:info 2024-02-03 13:01:37: Starting Zigbee2MQTT version 1.35.2 (commit #06b3395)
Zigbee2MQTT:info 2024-02-03 13:01:37: Starting zigbee-herdsman (0.33.5)
Zigbee2MQTT:debug 2024-02-03 13:01:37: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/app/data/coordinator_backup.json","databaseBackupPath":"/app/data/database.db.backup","databasePath":"/app/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/ttyACM0"}}'
2024-02-03T13:01:38.128Z zigbee-herdsman:adapter Path '/
#ifndef OBJECT_HPP
#define OBJECT_HPP
#define HPP
#ifndef BASE_OBJECT_HPP
#include "base_object.cpp"
#endif
// other includes here
@SilverPhoenix99
SilverPhoenix99 / content.html
Last active August 29, 2015 13:59
CCS ripple animation
<div class="container">
<div class="ripple"></div>
</div>
scatter(data(:,1), data(:,2), size, rgb, 'filled');
if(a)
{
if(b)
{
A
}
}
select *
from customer
where last_name = 'SMITH'
and age = 32