Skip to content

Instantly share code, notes, and snippets.

View amusarra's full-sized avatar

Antonio Musarra amusarra

View GitHub Profile
@amusarra
amusarra / ExecuteGenericJob.java
Created June 7, 2011 10:12
Classe Java per l’esecuzione di un Job Kettle.
package it.dontesta.lab.jobs.kettle;
import org.pentaho.di.core.KettleEnvironment;
import org.pentaho.di.core.logging.LogChannel;
import org.pentaho.di.core.logging.LogChannelInterface;
import org.pentaho.di.core.plugins.PluginRegistry;
import org.pentaho.di.core.plugins.RepositoryPluginType;
import org.pentaho.di.job.Job;
import org.pentaho.di.job.JobMeta;
import org.pentaho.di.repository.RepositoriesMeta;
@amusarra
amusarra / server.log
Created June 13, 2011 20:57
Liferay Portal Server StartUp Log
Jun 13, 2011 8:50:00 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Jun 13, 2011 8:50:00 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 13, 2011 8:50:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 617 ms
Jun 13, 2011 8:50:01 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 13, 2011 8:50:01 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
@amusarra
amusarra / getUserRolesRequest.xml
Created June 13, 2011 21:48
Liferay Portal Server - Web Service Portal_RoleService
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:http.service.portal.liferay.com">
<soapenv:Header/>
<soapenv:Body>
<urn:getUserRoles soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<userId xsi:type="xsd:long" xs:type="type:long" xmlns:xs="http://www.w3.org/2000/XMLSchema-instance">11317</userId>
</urn:getUserRoles>
</soapenv:Body>
</soapenv:Envelope>
@amusarra
amusarra / outPutJDBCTestClass.txt
Created June 15, 2011 13:54
JDBC Type Test Class
Got Connection.
jdbcMajorVersion:3
jdbcMinorVersion:0
driverName=PostgreSQL Native Driver
driverVersion=PostgreSQL 8.4 JDBC3 (build 701)
@amusarra
amusarra / context.xml
Created June 15, 2011 21:23
Apache Tomcat 6.0 - JNDI Datasource
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@amusarra
amusarra / testJDBCOracle.java
Created August 5, 2011 12:39
Classe di Test connessione JDBC verso un data base Oracle utilizzando il driver JDBC Thin.
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
/**
* Classe di Test connessione JDBC verso un data base Oracle
* utilizzando il driver JDBC Thin.
*
* @author amusarra
*
@amusarra
amusarra / context.xml
Created August 5, 2011 13:42
Apache Tomcat 6.0 - JNDI Datasource
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@amusarra
amusarra / Person_John.json
Created September 27, 2011 13:22
JSON Person Object
{"ID":"39CA2939-38C0-4C4E-AE6C-CFA5172B8CEB","name":"Doe","first-name":"John","age":25,"hobbies":["reading","cinema",{"sports":["volley-ball","snowboard"]}],"address":{}}
@amusarra
amusarra / JSONObject.php
Created September 27, 2011 13:44
Test JSON Object from JSON string
<?php
//$post_data_response = file_get_contents("https://raw.github.com/gist/1245028/80e690bcbe6f1c5b46676547fbd396ebba97339b/Person_John.json");
//$PersonObject = json_decode($post_data_response);
// Get Person Object from JSON Source
$PersonObject = json_decode('{"ID":"39CA2939-38C0-4C4E-AE6C-CFA5172B8CEB","lastname":"Doe","firstname":"John","age":25,"hobbies":["reading","cinema",{"sports":["volley-ball","snowboard"]}],"address":{}}');
// Get data from Object
echo "Person ID => $PersonObject->ID<br>";
@amusarra
amusarra / ExecuteCalculateCodiceFiscale.kjb
Created December 1, 2011 15:02
Job e Trasformazione per il calcolo del codice fiscale
<?xml version="1.0" encoding="UTF-8"?>
<job>
<name>ExecuteCalculateCodiceFiscale</name>
<description>Job che esegue la trasformazione per l&apos;integrazione del Codice Fiscale</description>
<extended_description/>
<job_version>1.0</job_version>
<job_status>1</job_status>
<directory>&#47;</directory>
<created_user>-</created_user>
<created_date>2011&#47;01&#47;25 17:21:26.000</created_date>