Skip to content

Instantly share code, notes, and snippets.

View augustorodrigues's full-sized avatar

Augusto Rodrigues augustorodrigues

View GitHub Profile
@szpak
szpak / build.gradle
Created December 19, 2011 23:07
build.gradle with something similar to Maven's profiles
apply plugin: 'java'
apply plugin: 'signing'
version = '0.5.3-SNAPSHOT'
isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = 1.5
//targetCompatibility has the same value as sourceCompatibility by default
//to enable fancy test reports with ReportNG
isReportNGEnabled = hasProperty("reports")
@ShigeoTejima
ShigeoTejima / AppConfig.java
Last active November 19, 2020 11:17
send mail to AWS SES using spring boot
package org.test.demo;
import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AppConfig {
@subfuzion
subfuzion / curl.md
Last active October 11, 2025 00:58
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@kltz
kltz / 1. Spring Boot + CXF https SOAP client.md
Last active September 17, 2020 13:34
Spring Boot + CXF https SOAP client

Zeroth step(There is no certificate.)

Download certification:

openssl s_client -showcerts -connect example.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >certfile.pem

Convert PEM to DER:

openssl x509 -outform der -in certfile.pem -out certificate.der

@thiamsantos
thiamsantos / db-conventions.md
Last active October 22, 2025 12:05
Convenções de nomenclatura para banco de dados

Convenções de nomenclatura para banco de dados

Geral

Os nomes das tabelas e colunas devem estar minúsculas e as palavras devem ser separadas por underscore, seguindo o padrão snake case. E todos os termos devem estar em inglês, exceto alguns termos que não há tradução apropriada para o inglês. Sempre prefira nomes descritivos, evitando ao máximo contrações.

Tabelas

Os nomes das tabelas devem estar no plural.

@MathOliveira
MathOliveira / Creating your start and stop script
Last active August 29, 2024 13:05
Creating your shell script to start/stop a Java application on Linux
With this script you can turn your jar file into a service on linux.
Change the MATH constant to the name of your application and make sure you are correctly specifying
the locationsof the files used in the variables.
For the correct operation of the script install it in the directory init.d and release its access as below:
chmod 755 *your_script*