Skip to content

Instantly share code, notes, and snippets.

Antonio Musarra amusarra

Block or report user

Report or block amusarra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
View catalina-out-liferay-upgrade-to-ga6-from-ga4.txt
10:31:45,891 INFO [localhost-startStop-1][DialectDetector:136] Found dialect org.hibernate.dialect.HSQLDialect
Starting Liferay Portal Community Edition 6.2 CE GA6 (Newton / Build 6205 / January 6, 2016)
10:32:18,139 INFO [localhost-startStop-1][StartupAction:97] There are no patches installed
10:32:18,851 INFO [localhost-startStop-1][BaseDB:481] Database supports case sensitive queries
10:32:19,333 INFO [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyProcessSuite
10:32:19,334 INFO [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyProperties
10:32:19,455 INFO [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyDB2
10:32:19,455 INFO [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyMySQL
10:32:19,456 INFO [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyOracle
10:32:19,457 INFO [localhost-startStop-1][VerifyProcess:65] Verifying com.
@amusarra
amusarra / GenerateLiferayPluginPortlet.sh
Last active Feb 8, 2016
Liferay Maven: Come fare il deploy remoto
View GenerateLiferayPluginPortlet.sh
mvn -B archetype:generate \
-DarchetypeRepository=$HOME/.m2/repository \
-DarchetypeArtifactId=liferay-portlet-archetype \
-DarchetypeGroupId=com.liferay.maven.archetypes \
-DarchetypeVersion=6.2.10.15 \
-DartifactId=login-sample-portlet \
-DgroupId=it.dontesta.labs.liferay.portlets \
-Dversion=1.0.0-SNAPSHOT
You can’t perform that action at this time.