Skip to content

Instantly share code, notes, and snippets.

View amusarra's full-sized avatar

Antonio Musarra amusarra

View GitHub Profile
@amusarra
amusarra / flow_esp32_mqtt_dashboard.json
Last active January 29, 2022 21:04
Node-RED Flow ESP32 MQTT Publish/Subscribe
[
{
"id": "d0c256a4.6e3e48",
"type": "tab",
"label": "ESP32 MQTT Dashboard Environmental Parameters",
"disabled": false,
"info": ""
},
{
"id": "454852c9.ec7f5c",
@amusarra
amusarra / acl_rules_user_esp32_device.json
Created April 4, 2021 23:44
EMQ X Edge 4.2.9 - Add User and ACL (emqx_auth_mnesia module)
[{
"login": "esp32-device",
"topic": "esp32/telemetry_data",
"action": "pub",
"allow": true
},
{
"login": "esp32-device",
"topic": "esp32/telemetry_data",
"action": "sub",
@amusarra
amusarra / BIT4ID_miniLector_AIR_NFC_v3.patch
Last active February 10, 2022 09:15
BIT4ID_miniLector_AIR_NFC_v3.patch
diff --git a/readers/supported_readers.txt b/readers/supported_readers.txt
index 5601ded..bfee1c2 100644
--- a/readers/supported_readers.txt
+++ b/readers/supported_readers.txt
@@ -237,6 +237,7 @@
0x25DD:0x3111:Bit4id miniLector
0x25DD:0x3211:Bit4id miniLector AIR EVO
0x25DD:0xB001:Bit4id miniLector Blue
+0x25DD:0x3403:BIT4ID miniLector AIR NFC v3
version: '3.3'
services:
apache-ssl-tls-mutual-authentication:
image: amusarra/apache-ssl-tls-mutual-authentication
ports:
- "443:10443"
@amusarra
amusarra / publish_sense_hat_telemetry.py
Last active August 3, 2019 17:29
Raspberry PI Sense HAT: Come pubblicare i dati su CloudAMQP via MQTT
#!/usr/bin/python
# -*- coding: utf-8 -*-
try:
from sense_hat import SenseHat
except ImportError:
from sense_emu import SenseHat
import paho.mqtt.client as paho
import time
@amusarra
amusarra / addLiferayBundlesToLocalMavenRepository.sh
Last active March 5, 2018 22:50
Add Liferay Bundles to Maven Local Repository
#!/bin/bash
# The MIT License (MIT)
# Copyright (c) 2018 Antonio Musarra's Blog - https://www.dontesta.it
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@amusarra
amusarra / DummyAuditMessageProcessor.java
Last active January 25, 2018 17:46
Liferay Portal Security Audit
package it.dontesta.labs.liferay.portal.security.audit.message.processor.dummy;
import com.liferay.portal.configuration.metatype.bnd.util.ConfigurableUtil;
import com.liferay.portal.kernel.audit.AuditMessage;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.security.audit.AuditMessageProcessor;
import it.dontesta.labs.liferay.portal.security.audit.message.processor.dummy.configuration.DummyAuditMessageProcessorConfiguration;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
@amusarra
amusarra / liferay.log
Created October 16, 2017 23:18
WeDeploy: Come installare Liferay 7 CE GA4
liferay[build] Step 1/3 : FROM amusarra/liferay-portal:7-ce-ga4-tomcat-hsql-v1.7
liferay[build] ---> bf69b346267f
liferay[build] Step 2/3 : ADD . /wedeploy-container
liferay[build] ---> aa2308f96fb6
liferay[build] Step 3/3 : LABEL com.wedeploy.container.build '251007756700688404' com.wedeploy.container.container 'liferay' com.wedeploy.container.groupUid 'ps8eekk' com.wedeploy.container.project 'amusarra'
@amusarra
amusarra / module.xml
Last active May 12, 2017 14:55
How to install Liferay 7 on JBoss EAP 6.4
<?xml version="1.0"?>
<module name="com.liferay.portal" xmlns="urn:jboss:module:1.0">
<resources>
<resource-root path="com.liferay.registry.api-1.1.1.jar" />
<resource-root path="hsql.jar" />
<resource-root path="portal-kernel.jar" />
<resource-root path="portlet.jar" />
<resource-root path="ojdbc8.jar" />
</resources>
<dependencies>
@amusarra
amusarra / dontesta-karaf-server.pub.pem
Created March 1, 2017 23:41
Come abilitare HTTPS su Apache Karaf Pax Web OPS4J
-----BEGIN CERTIFICATE-----
MIIDyTCCArGgAwIBAgIEU9S/EDANBgkqhkiG9w0BAQsFADB8MQ4wDAYDVQQIEwVJdGFseTENMAsG
A1UEBxMEUm9tZTELMAkGA1UEBhMCSVQxHzAdBgNVBAoTFkFudG9uaW8gTXVzYXJyYSdzIEJsb2cx
ETAPBgNVBAsMCFImRCBMYWJzMRowGAYDVQQDExFrYXJhZi5kb250ZXN0YS5pdDAeFw0xNzAyMjgy
MjE4MTlaFw0yMjEwMDgyMjE4MTlaMHwxDjAMBgNVBAgTBUl0YWx5MQ0wCwYDVQQHEwRSb21lMQsw
CQYDVQQGEwJJVDEfMB0GA1UEChMWQW50b25pbyBNdXNhcnJhJ3MgQmxvZzERMA8GA1UECwwIUiZE
IExhYnMxGjAYBgNVBAMTEWthcmFmLmRvbnRlc3RhLml0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEAsPuxJftWgDzQ9JhhWN6bjybKjCz04L5OC5dNKrF9FBMl/2Xw07aC0g3uB6dILCqf
L8+i8aUZnSl147i3eyUq6Zsk0UquNK3Q+7/pi1WZHfIpSuZsL5x+jLI3sInREGTw63Jf4+6pa2LH
hoJ20/G90dvyJIjBLT/DpnTQiHdKhaEZxpNB2dclSmrwkKiiA7+AEyzhKmkJ5zDJWIAbpIyfAk5n