Skip to content

Instantly share code, notes, and snippets.

View guilhermerodrigues680's full-sized avatar

Guilherme Rodrigues guilhermerodrigues680

View GitHub Profile
@guilhermerodrigues680
guilhermerodrigues680 / PASSOS.md
Last active June 24, 2020 10:16
Converter Documento Word A4 em poster com folhas A4

Converter Documento Word A4 em poster com folhas A4

Guilherme Rodrigues

A ideia para gerar um poster é a seguinte:

Precisamos redimensionar o documento do word que está configurado para o tamanho A4 em um documento de tamanho A2, pois seguindo a proporção do padrão série A um poster de tamnho A3 é equivalente a 2 folhas A4 e um poster de tamanho A2 é equivalente a 2 folhas A3, logo um poster A2 equivale a 4 folhas A4. A ilustração pode ser vista neste site: Conversão entre A2 e A4 ou na imagem abaixo retirada do mesmo site:

Conversão entre A2 e A4

#!/bin/bash
#titulo :check_docker_images.sh
#descrição :Este script mostra as imagens que realmente estão em uso pelos containers.
#autor :Guilherme Rodrigues
#data :10-01-2020
#uso :bash check_docker_images.sh
printf "\nCONTAINERS\n\n"
docker ps -a
@guilhermerodrigues680
guilhermerodrigues680 / aplicacao-java-spring-boot-replit.md
Last active November 6, 2023 19:35
Criando uma aplicação JAVA + Spring-Boot no Repl.it

Aplicação Spring Boot no Repl.it - API Rest + Static Server

Template no Repl.it: repl.it/@GuilhermeRodri8/spring-boot-application

Configurando projeto

Criando o projeto utilizando o Spring Initializr

  • Crie um novo Repl e escolha a linguagem Java
  • Apos criado o Repl.it vá para o console
@guilhermerodrigues680
guilhermerodrigues680 / HTTP-HTTPS-SERVER-PYTHON.md
Last active November 23, 2020 23:48
Criando um servidor HTTP e HTTPS em Python

HTTP

# http server Python 2
python -m SimpleHTTPServer

# http sever Python 3
python3 -m http.server
@guilhermerodrigues680
guilhermerodrigues680 / .vimrc
Created November 25, 2020 13:45
Vim colorido no macOS
syntax on
set laststatus=2
set visualbell
set number
set showcmd
set ruler
" Indentation settings for using 4 spaces instead of tabs.
" Do not change 'tabstop' from its default value of 8 with this setup.
set shiftwidth=4
@guilhermerodrigues680
guilhermerodrigues680 / codercom-code-server.sh
Last active February 27, 2021 16:25
Passos para subir o codercom/code-server
openssl req \
-newkey rsa:2048 -nodes -keyout cert.key \
-x509 -days 365 -out cert.crt \
-subj "/C=BR/ST=MG/L=BH/O=Global Security/OU=IT Department/CN=example.com"
mkdir -p ~/.config
docker run -it \
-p 8080:8080 \
-p 8081:8081 \
@guilhermerodrigues680
guilhermerodrigues680 / UsodaAPIdoSIU.md
Created March 3, 2021 19:58 — forked from brunoarmanelli/UsodaAPIdoSIU.md
Pesquisa e Documentação - SIU Mobile

Projeto ChatBUS - Uso da API do SIU Mobile

Muitas frustrações com o aplicativo oficial SIU Mobile me motivaram a escrever essa documentação. Toda a API foi especificada com o máximo de informações encontradas.

Nota do Autor

Este documento é totalmente privado e foi disponibilizado em link de Gist secreto para uso interno nas empresas que representam o SIU Mobile BH.

Todo o conteúdo foi observado através da transmissão de dados pela rede. Não foi utilizado nenhum código da aplicação.

@guilhermerodrigues680
guilhermerodrigues680 / blog.md
Created March 7, 2021 00:13 — forked from JacobBennett/blog.md
Clean up your Vue modules with ES6 Arrow Functions

Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent before updating to Vue 2.0. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.

The best way to explain this is with an example so lets start there. I'm going to throw a rather large block of code at you here, but stick with me and we will move through it a piece at a time.

<script>

// require vue-resource...

new Vue({
@guilhermerodrigues680
guilhermerodrigues680 / spring-boot.sh
Created March 8, 2021 10:51
Spring Boot Language And Country
# https://www.oracle.com/technical-resources/articles/javase/locale.html#using
# https://stackoverflow.com/a/51513723
./mvnw clean spring-boot:run -Dspring-boot.run.jvmArguments="-Duser.language=pt -Duser.country=BR"
java -Duser.language=pt -Duser.country=BR -jar app.jar