Skip to content

Instantly share code, notes, and snippets.

View rflpazini's full-sized avatar
:bowtie:
How you doin'?

Rafael Pazini rflpazini

:bowtie:
How you doin'?
View GitHub Profile
@rflpazini
rflpazini / k8s.md
Created February 19, 2019 13:30
Simple step by step to introduce kubernets

Module 1

Cluster up and running

We already installed minikube for you. Check that it is properly installed, by running the minikube version command:

minikube version

OK, we can see that minikube is in place.

Start the cluster, by running the minikube start command:

#include <Wire.h>
#include <Stepper.h> //biblioteca para controle de motor de passo
#include <LiquidCrystal.h>
LiquidCrystal disp(6, 7, 5, 4, 3, 2);
// VARIÁVEL PARA SELEÇÃO DO PINO DIGITAL ----------------------------------------------------------------------------------
const int setButton = 11; // SETA VALORES ESCOLHIDOS
const int returnButton = 8; // RETORNA MENU ANTERIOR
const int proceedButton = 13; // PROCEDE AO PRÓXIMO MENU
@rflpazini
rflpazini / build.gradle
Created January 23, 2019 01:44
Build gradle for apply git hooks with google java style guide formatter
plugins {
id 'com.github.sherter.google-java-format' version '0.8'
}
googleJavaFormat {
options style: 'GOOGLE'
}
task installGitHooks(type: Copy) {
into (rootProject.rootDir)
#!/bin/sh
git update-index -g
#!/bin/sh
set -e
BASE_NAME=$(basename `git rev-parse --show-toplevel`)
REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
GREEN="\033[1;32m"
NOCOLOR="\033[0m"
echo "\nRunning pre-commit checks on $BASE_NAME..."

Mastering IntelliJ IDEA keyboard shortcuts 🔑

IntelliJ IDEA has keyboard shortcuts for most of its commands related to editing, navigation, refactoring, debugging, and other tasks. Memorizing these hotkeys can help you stay more productive by keeping your hands on the keyboard.

The following table lists some of the most useful shortcuts to learn:

Shortcut Action
Double Ctrl Run Anything. Execute commands, such as opening a project, launching a run/debug configuration, running a command-line utility, and so on. The available commands depend on the set of plugins and tools you have configured for your project
Double Shift Search Everywhere. Find anything related to IntelliJ IDEA or your project and open it, execute it, or jump to it
curl -H "Accept: application/vnd.github.cloak-preview" \
https://api.github.com/search/commits?q=is:public
@rflpazini
rflpazini / r3m0ve-mbranch3s.sh
Last active January 23, 2019 05:00
This script will compare and remove all branches that are merged into master
#!/bin/bash
BRANCH=${1:-'master'}
# This has to be run from master
git checkout $BRANCH
# Update our list of remotes
git fetch
git remote prune origin
env:
global:
- secure: mcUCykGm4bUZ3CaW6AxrIMFzuAYjA98VIz6YmYTmM0/8sp/B/54JtQS/j0ehCD6B5BwyW6diVcaQA2c7bovI23GyeTT+TgfkuKRkzDcoY51ZsMDdsflJ94zV7TEIS31eCeq42IBYdHZeVZp/L7EXOzFjVmvYhboJiwnsPybpCfpIH369fjYKuVmutccD890nP8Bzg8iegssVldgsqDagkuLy0wObAVH0FKnqiIPtFoMf3mDeVmK2AkF1Xri1edsPl4wDIu1Ko3RCRgfr6NxzuNSh6f4Z6zmJLB4ONkpb3fAa9Lt+VjJjdSjCBT1OGhJdP7NlO5vSnS5TCYvgFqNSXqqJx9BNzZ9/esszP7DJBe1yq1aNwAvJ7DlSzh5rvLyXR4VWHXRIR3hOWDTRwCsJQJctCLpbDAFJupuZDcvqvPNj8dY5MSCu6NroXMMFmxJHIt3Hdzr+hV9RNJkQRR4K5bR+ewbJ/6h9rjX6Ot6kIsjJkmEwx1jllxi4+gSRtNQ/O4NCi3fvHmpG2pCr7Jz0+eNL2d9wm4ZxX1s18ZSAZ5XcVJdx8zL4vjSnwAQoFXzmx0LcpK6knEgw/hsTFovSpe5p3oLcERfSd7GmPm84Qr8U4YFKXpeQlb9k5BK9MaQVqI4LyaM2h4Xx+wc0QlEQlUOfwD4B2XrAYXFIq1PAEic=
travis encrypt MY_SECRET_ENV=super_secret --add env.global