Skip to content

Instantly share code, notes, and snippets.

Avatar

Antonio Musarra amusarra

View GitHub Profile
@amusarra
amusarra / BIT4ID_miniLector_AIR_NFC_v3.patch
Last active Nov 1, 2020
BIT4ID_miniLector_AIR_NFC_v3.patch
View 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
View apache-ssl-tls-mutual-authentication.yml
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 Aug 3, 2019
Raspberry PI Sense HAT: Come pubblicare i dati su CloudAMQP via MQTT
View publish_sense_hat_telemetry.py
#!/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 Mar 5, 2018
Add Liferay Bundles to Maven Local Repository
View addLiferayBundlesToLocalMavenRepository.sh
#!/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 Jan 25, 2018
Liferay Portal Security Audit
View DummyAuditMessageProcessor.java
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 Oct 16, 2017
WeDeploy: Come installare Liferay 7 CE GA4
View liferay.log
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
How to install Liferay 7 on JBoss EAP 6.4
View module.xml
<?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 Mar 1, 2017
Come abilitare HTTPS su Apache Karaf Pax Web OPS4J
View dontesta-karaf-server.pub.pem
-----BEGIN CERTIFICATE-----
MIIDyTCCArGgAwIBAgIEU9S/EDANBgkqhkiG9w0BAQsFADB8MQ4wDAYDVQQIEwVJdGFseTENMAsG
A1UEBxMEUm9tZTELMAkGA1UEBhMCSVQxHzAdBgNVBAoTFkFudG9uaW8gTXVzYXJyYSdzIEJsb2cx
ETAPBgNVBAsMCFImRCBMYWJzMRowGAYDVQQDExFrYXJhZi5kb250ZXN0YS5pdDAeFw0xNzAyMjgy
MjE4MTlaFw0yMjEwMDgyMjE4MTlaMHwxDjAMBgNVBAgTBUl0YWx5MQ0wCwYDVQQHEwRSb21lMQsw
CQYDVQQGEwJJVDEfMB0GA1UEChMWQW50b25pbyBNdXNhcnJhJ3MgQmxvZzERMA8GA1UECwwIUiZE
IExhYnMxGjAYBgNVBAMTEWthcmFmLmRvbnRlc3RhLml0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEAsPuxJftWgDzQ9JhhWN6bjybKjCz04L5OC5dNKrF9FBMl/2Xw07aC0g3uB6dILCqf
L8+i8aUZnSl147i3eyUq6Zsk0UquNK3Q+7/pi1WZHfIpSuZsL5x+jLI3sInREGTw63Jf4+6pa2LH
hoJ20/G90dvyJIjBLT/DpnTQiHdKhaEZxpNB2dclSmrwkKiiA7+AEyzhKmkJ5zDJWIAbpIyfAk5n
@amusarra
amusarra / build.sbt
Created Jan 24, 2017
La Scala giusta per i Big Data
View build.sbt
scalaVersion := "2.11.8"
name := "Simple Scala Project"
libraryDependencies += "org.apache.spark" % "spark-mllib_2.11" % "1.5.1"
@amusarra
amusarra / catalina.out
Created Apr 11, 2016
Liferay Portal Oracle Database Support
View catalina.out
11-Apr-2016 19:02:04.085 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.32
11-Apr-2016 19:02:04.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Feb 2 2016 19:34:53 UTC
11-Apr-2016 19:02:04.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.32.0
11-Apr-2016 19:02:04.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X
11-Apr-2016 19:02:04.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.11.4
11-Apr-2016 19:02:04.089 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86_64
11-Apr-2016 19:02:04.089 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre
11-Apr-2016 19:02:04.089 INFO [main] org.apache.catalina.startup.VersionLoggerLi
You can’t perform that action at this time.