Skip to content

Instantly share code, notes, and snippets.

View MateusAndraste's full-sized avatar

Mateus André MateusAndraste

  • Foraleza, Ceará
View GitHub Profile
@MateusAndraste
MateusAndraste / jax-rs-list of-entities.java
Created February 4, 2022 17:47 — forked from leifoolsen/jax-rs-list of-entities.java
JAX-RS: Return a list of entities in a response
@GET
public Response allBooks() {
UriBuilder uriBuilder = uriInfo.getAbsolutePathBuilder().clone();
// Given a list of books
List<Book> books = Lists.newArrayList(new Book("1234567890"), new Book("0123456789"));
// Convert to GenericEntity and return in response
GenericEntity<List<Book>> entities = new GenericEntity<List<Book>>(books){};
@MateusAndraste
MateusAndraste / README-TEMPLATE.md
Created November 8, 2021 21:10 — forked from reginadiana/README-TEMPLATE.md
Template sugestivo para documentação de projetos

Titulo ou Arte do Projeto

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
Configurar filebeat em JBOSS/Wildfly
1. Instalar o filebeat
> curl -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-6.3.2-amd64.deb
> dpkg -i filebeat-oss-6.3.2-amd64.deb
2. Configurar o filebeat
> /etc/filebeat/filebeat.yml