Skip to content

Instantly share code, notes, and snippets.

View Met4tron's full-sized avatar
🍉
Working from home

Yuri Gomes Met4tron

🍉
Working from home
  • Rio de Janeiro
  • 00:15 (UTC -03:00)
  • LinkedIn in/yuurig
View GitHub Profile
@denji
denji / http-benchmark.md
Last active July 18, 2024 09:01
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active July 14, 2024 19:55
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@nweldev
nweldev / nodejs_installer.ps1
Last active April 25, 2023 10:40
Powershell script installing nodejs (with git) and some npm packages
write-host "`n ## NODEJS INSTALLER ## `n"
### CONFIGURATION
# nodejs
$version = "4.4.7-x64"
$url = "https://nodejs.org/dist/latest-v4.x/node-v$version.msi"
# git
$git_version = "2.9.2"
@nzvtrk
nzvtrk / Dockerfile
Last active June 6, 2024 08:56
Nest.js multi-stage build dockerfile + docker-compose with postgres & migrations
FROM node:12.14.1-alpine AS build
# If you have troubles with node-gyp use should install these dependencies
RUN apk add g++ make python
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . ./
# build js & remove devDependencies from node_modules
@jeffque
jeffque / questions-answers.md
Last active July 8, 2024 19:00 — forked from Met4tron/questions.md
Java na visão de quem está reaprendendo

Persistence

  • JPA ou Hibernate?
  • Existe um mundo onde JDBC puro é mais utilizado?
    • Eu uso bastante JDBC puro. Normalmente se usa quando se precisa falar diretamente com o banco, não HQL ou coisa equivalente. Existem tretas com spring-jdbc que o jdbc puro trata bem. Não cheguei a usar algo mais específico do spring para stream de dados e coisas mais pesadas.
  • Existe algum Query Builder no mundo Java?
  • Muitos. Como exemplo, jOOQ.