Skip to content

Instantly share code, notes, and snippets.

View johnatanbrayan's full-sized avatar
🏠
Working from home

Johnatan Brayan johnatanbrayan

🏠
Working from home
View GitHub Profile
@johnatanbrayan
johnatanbrayan / heroku.txt
Created July 15, 2022 20:19
How to deploy Heroku CLI
# How to deploy Heroku CLI
heroku login
heroku create <name-app-api>
heroku git:remote -a <name-app-api>
git push heroku main
@johnatanbrayan
johnatanbrayan / History|-10074061|entries.json
Last active November 22, 2022 00:39
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///home/jarvis/Documents/development/my_projects/microservice-worker/hr-user/src/main/java/com/johnatanbrayan/hruser/controllers/UserController.java","entries":[{"id":"PMhc.java","timestamp":1653921307347},{"id":"XWy8.java","timestamp":1653935000343},{"id":"3nIe.java","timestamp":1653935341756},{"id":"AXoJ.java","timestamp":1653935571177},{"id":"7uPR.java","timestamp":1653935633073},{"id":"M2JO.java","timestamp":1653935729786},{"id":"v3W8.java","timestamp":1653935875186},{"id":"6AX7.java","timestamp":1653936486574},{"id":"tY9r.java","timestamp":1653948034301},{"id":"2dPJ.java","timestamp":1653997686805},{"id":"m0Nj.java","timestamp":1653997706044},{"id":"m4vB.java","timestamp":1653998470300},{"id":"PgfU.java","timestamp":1654000157420},{"id":"pDWL.java","timestamp":1654000220617},{"id":"vYlH.java","timestamp":1654002060570},{"id":"OtGe.java","timestamp":1654002199311},{"id":"AZVt.java","timestamp":1654003079111},{"id":"zc7Q.java","timestamp":1654004987444},{"id":"Il23.java","time
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/jarvis/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@johnatanbrayan
johnatanbrayan / Database - How to download a dump
Created November 8, 2021 21:59
Database - How to download a dump
## How to import dump on database:
cat your_dump.sql | docker exec -i your-db-container psql -U your-db-user -d your-db-name
# Ex:
cat dbnonecohom01-tcbapi_qa.dmp | docker exec -i 0eea92bb9447 psql -U tcbapi_qa -d db_tcb_main_qa
@johnatanbrayan
johnatanbrayan / best_fonts.txt
Last active May 12, 2021 21:16
Best Fonts CSS
font-family: 'Barlow', sans-serif;
font-family: "Roboto", sans-serif;
font-family: 'Montserrat',sans-serif;
@johnatanbrayan
johnatanbrayan / how_to_create_a_service_on_linux.txt
Last active April 30, 2021 15:06
How to create a service on linux
# How to create a service on linux:
cd /etc/systemd/system
vim application.service
################# Template to create a Service on linux #################
[Unit]
Description=Desafio Spring Boot application
After=syslog.target
[Service]
@johnatanbrayan
johnatanbrayan / image_pdf_to_pdf_text.txt
Created April 12, 2021 14:36
Sites to help how to convert image PDF to PDF Text
https://tools.pdf24.org/pt/ocr-pdf#s=1616548534696
https://www.sodapdf.com/pt/ocr-pdf/
https://www.sodapdf.com/pt/juntar-pdf/
https://www.onlineocr.net/pt/
https://www.ilovepdf.com/
https://smallpdf.com/pt/juntar-pdf
https://www.ilovepdf.com/pt/dividir_pdf
@johnatanbrayan
johnatanbrayan / oracle_xe18c_on_docker.txt
Last active May 16, 2021 21:36
How to install Oracle XE 18c on docker
## How to install Oracle XE 18c on docker
#Tutorial: https://www.youtube.com/watch?v=CbopSCwATIg&list=PL5euTSrohYaTaQS8gO0ad7J_fyWy1HXud&index=22
## Clone repo
git clone git@github.com:fuzziebrain/docker-oracle-xe.git
## Set the working directory to the project folder
cd docker-oracle-xe
## Copy the RPM to docker-odb18c-xe/files
@johnatanbrayan
johnatanbrayan / regex_base64_java
Created April 11, 2021 20:59
Regex Base64 Java
**** Regex Base64:
(?:[A-Za-z0-9+\/]{4}\\n?)*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=) // Best
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$
@johnatanbrayan
johnatanbrayan / docker_commands.txt
Last active July 29, 2021 20:58
My docker commands
## Docker commands:
# Start docker service
sudo service docker start
# Stop docker service
sudo service docker stop
# Status docker service
sudo service docker status