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 / 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
@rflpazini
rflpazini / zsh_commands.md
Created November 7, 2018 16:55
Commands zsh

To try it out if you have just cloned it (to your home directory):

source ~/.oh-my-zsh/templates/zshrc.zsh-template

Commands

@rflpazini
rflpazini / environment.sh
Last active October 31, 2018 15:03
Environment basic setup
#/bin/bash
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/versions
brew update
# --- DEVELOPMENT TOOLS
# Install git-flow