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
@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 / 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();
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 / 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

@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() {
"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/[email protected],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
{
"openapi": "3.0.0",
"info": {
"title": "Matera SPI - Callback",
"description": "",
"version": "0.0.1"
},
"paths": {
"/v1/instant-payments/callback/": {
"post": {