Skip to content

Instantly share code, notes, and snippets.

View franklaercio's full-sized avatar
🎯
Focusing

Frank Laércio franklaercio

🎯
Focusing
View GitHub Profile
@franklaercio
franklaercio / docker-compose.yml
Last active September 7, 2022 12:45
Compose to use SonarQube
version: "3.7"
services:
sonarqube:
image: sonarqube:6.7.1
container_name: sonarqube
restart: unless-stopped
depends_on:
- db-sonarqube
environment:
@franklaercio
franklaercio / batch.md
Last active April 4, 2022 01:25
Spring Batch

Spring Batch Tips

Multiples steps

@Bean
public Job footballJob() {
    return this.jobBuilderFactory.get("footballJob")
                     .start(playerLoad())
                     .next(gameLoad())
@franklaercio
franklaercio / node_initial_scripts.md
Created March 9, 2022 04:00
A simple list commands to create a new NodeJs project with Typescript

NodeJs Start Commands With Typescript, Prettier and ESLint

Create foulder and initial yarn

mkdir MY_PROJECT; cd MY_PROJECT
yarn init -y
code .
@franklaercio
franklaercio / docker-tips.md
Last active February 24, 2022 04:18
Docker Tips

Start Docker

$ sudo service docker start

Build image

$ docker build .
@franklaercio
franklaercio / elixir-tips.md
Last active January 20, 2022 03:32
Guist Elixir tips

Create new project

  • Run in terminal this follow script
mix new nome_projeto

Add credo lib

  • Update in tail file mix.exs
@franklaercio
franklaercio / wsl.md
Last active August 19, 2023 06:27
This is a guist for commands in wsl
  • Command to install WSL
# Essentials features
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

# WSL with Ubuntu
wsl --install -d Ubuntu
# Resets index to former commit; replace '56e05fced' with your commit code
git reset 56e05fced
# Moves pointer back to previous HEAD
git reset --soft HEAD@{1}
git commit -m "Revert to 56e05fced"
# Updates working copy to reflect the new commit
git reset --hard
$ ssh-keygen -t rsa -C "your_email@example.com"
# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566
$ ssh-add ~/.ssh/id_rsa
$ cat ~/.ssh/id_rsa.pub
# Copies the contents of the id_ed25519.pub file to your clipboard
@franklaercio
franklaercio / git.md
Created April 24, 2020 11:27 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

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

Ajuda