Skip to content

Instantly share code, notes, and snippets.

View andreluizf's full-sized avatar

Andre luiz Ferreira andreluizf

  • Matera
  • Av. Duque de Caxias
View GitHub Profile
{
"openapi": "3.0.0",
"info": {
"title": "Matera SPI - Callback",
"description": "",
"version": "0.0.1"
},
"paths": {
"/v1/instant-payments/callback/": {
"post": {
"Project","ScanDate","DependencyName","DependencyPath","Description","License","Md5","Sha1","Identifiers","CPE","CVE","CWE","Vulnerability","Source","CVSSv2_Severity","CVSSv2_Score","CVSSv2","CVSSv3_BaseSeverity","CVSSv3_BaseScore","CVSSv3","CPE Confidence","Evidence Count"Sistema,"Fri, 12 Jul 2019 17:04:19 -0300",jasperreports-emp-6.4.0.5.jar,/home/user/.m2/repository/net/sf/jasperreports/jasperreports/emp-6.4.0.5/jasperreports-emp-6.4.0.5.jar,JasperReports Library,GNU Lesser General Public License: http://jasperreports.sourceforge.net/license.html,27ee5162e86f3b8554c1e7c2fa3cef85,bb7d23696424ceaacfc5ffba6dd0617ff8fa3d9c,pkg:maven/net.sf.jasperreports/jasperreports@emp-6.4.0.5,cpe:2.3:a:tibco:jasperreports_library:6.4.0.5:*:*:*:*:*:*:*,CVE-2017-5529,null,"JasperReports library components contain an information disclosure vulnerability. This vulnerability includes the theoretical disclosure of any accessible information from the host file system. Affects TIBCO JasperReports Library Community Edition (versions
@andreluizf
andreluizf / terminal-git-branch-name.md
Created August 30, 2018 13:10 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@andreluizf
andreluizf / git.md
Last active August 30, 2018 13:16 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

package sample;
import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Properties;
import org.hibernate.HibernateException;
@andreluizf
andreluizf / teste
Created November 7, 2014 19:02
pegar usuario logado no windows
public static void main(String[] args){
System.out.println(System.getProperty("user.name"));
//nome da maquina
InetAddress addr;
try{
addr = InetAddress.getLocalHost();
System.out.println(addr.getHostName());
}catch(UnknownHostException e){
// TODO Auto-generated catch block
e.printStackTrace();
@andreluizf
andreluizf / teste.java
Last active August 29, 2015 14:05
recursividade
public class Teste {
private static void printMultiplos(int n, int x, int y) {
if (n >= x && n <= y) {
System.out.println(n);
printMultiplos(n + 3, x, y);
} else if (n <= y) {
printMultiplos(n + 3, x, y);
}
}
@andreluizf
andreluizf / pom.xml
Created July 18, 2014 16:57
maven deploy
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
import br.com.xkey.cax.model.Produto;
import br.com.xkey.cax.repository.produto.ProdutoRepository;
import javax.ejb.EJB;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
@andreluizf
andreluizf / persistence.xml
Last active August 29, 2015 14:02
repository
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="CAX" transaction-type="JTA">
<jta-data-source>CAX</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.jdbc.cache-statements" value="true"/>
<!-- Optimization #10 - batch writing -->
<property name="eclipselink.jdbc.batch-writing" value="JDBC"/>
<property name="eclipselink.jdbc.batch-writing.size" value="1000"/>