Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrián Moreno adrianmo

View GitHub Profile
View mhc221.xml
<Product Revision="1" xmlns="https://github.com/OpenZWave/open-zwave">
<!-- MCOHome MH-C221 Shutter Panel Switch -->
<!-- Configuration -->
<CommandClass id="112">
<Value type="short" genre="config" instance="1" index="1" label="Power reports - periodic" units="second" min="1" max="32767" value="720">
<Help>This parameter determines in what time intervals the periodic power reports. The configured value will be multiplied by 5. E.g. a value of 720 seconds will make the device report wattage every 5*720 = 3600 seconds (1 hour). Default setting: 720.</Help>
</Value>
<Value type="short" genre="config" instance="1" index="2" label="Energy reports - periodic" units="minute" min="1" max="32767" value="6">
<Help>This parameter determines in what time intervals the periodic energy reports. The configured value will be multiplied by 10. E.g. a value of 6 minutes will make the device report wattage every 10*6 = 60 minutes (1 hour). Default setting: 6.</Help>
</Value>
@adrianmo
adrianmo / post.md
Last active Mar 12, 2020
AzureBackendListener
View post.md

Send your JMeter test results to Application Insights

This blog post will explain how to use the recently published Azure Backend Listener for JMeter to send your test result metrics to your Application Insights instance.

With the release of JMeter 3.2, the Apache team introduced a new BackendListener interface that allowed developers to build their own listeners and asynchronously push test result metrics to a backend of their choice.

This Application Insights integration leverages the JMeter Backend Listener interface by implementing a AzureBackendListenerClient. This implementation makes use of the telemetry client available in the Application Insights SDK for Java to send metrics to Azure.

Step-by-step with the Azure Backend Listener

@adrianmo
adrianmo / simple.jmx
Created Feb 18, 2020
Simple JMeter test plan
View simple.jmx
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.1.1 r1855137">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
@adrianmo
adrianmo / ipsec_remote_ip_update
Created Jan 18, 2016
Mikrotik script to update IPsec peer and policy when remote IP changes
View ipsec_remote_ip_update
##############Script Settings##################
:local RemoteNOIPHost "domainname.noip.com"
:local IPsecComment "myIPsec"
###############################################
:local TmpIP [/ip ipsec peer get [find comment="$IPsecComment"] address]
:local OldIP [:pick "$TmpIP" 0 ([:len $TmpIP] - 3)]
:local NewIP [:resolve $RemoteNOIPHost]
:if ($NewIP != $OldIP) do={
@adrianmo
adrianmo / ddns_update
Last active Oct 4, 2020
Mikrotik script to update a dynamic DNS host and IPsec policy
View ddns_update
##############Script Settings##################
:local DDNSUser "username"
:local DDNSPass "password"
:local DDNSDomain "yourhost.ddns.net"
:local DDNSServer "https://members.dyndns.org/v3/update"
:local WANInter "pppoe-out1"
###############################################
:local IpCurrent [/ip address get [find interface=$WANInter] address];
:for i from=( [:len $IpCurrent] - 1) to=0 do={
You can’t perform that action at this time.