Skip to content

Instantly share code, notes, and snippets.

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

Bruno Parolini BParolini

🏠
Working from home
View GitHub Profile
@BParolini
BParolini / .tmux.conf
Created April 24, 2023 00:51
Simple tmux configuration
set -g mouse on
set-option -g allow-rename off
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# copy to clipboard
@BParolini
BParolini / get_all_git_branches.sh
Last active July 29, 2020 09:37
Shellscript which clones a list of repos and checkouts all branches
!/bin/env sh
for repo in `cat repo.txt`
do
git clone "$repo"
echo
echo ====
echo
done
@BParolini
BParolini / angular_vscode_launch.json
Created April 17, 2020 09:49
Simple launch configuration for Angular projects in VS Code
{
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/#",
"webRoot": "${workspaceFolder}",
@BParolini
BParolini / nodejs.gitignore
Created April 14, 2020 11:03
Simple .gitignore file for NodeJS / JavaScript Projects
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
**/dist
**/tmp
**/out-tsc
# Only exists if Bazel was run
**/bazel-out
# dependencies
@BParolini
BParolini / java.gitignore
Last active April 14, 2020 11:00
Simple .gitignore file for Java Projects
**/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
@BParolini
BParolini / gpg.sh
Created November 22, 2019 01:29
GPG2 configuration file
#!/usr/bin/env sh
# author: Bruno Parolini brunoparolini@gmail.com
# description: Generates a GPG2 key
# version: 2.0
if [ $# -eq 0 ]
then
echo "No arguments supplied."
echo "You must inform \"<user_email>\""
@BParolini
BParolini / git_config.sh
Last active November 22, 2019 01:21
Git global configuration file
#!/usr/bin/env sh
# author: Bruno Parolini brunoparolini@gmail.com
# description: Sets Git global configuration (it assumes kwrite and kdiff3 are installed in the system)
# version: 1.0
if [ $# -eq 0 ]
then
echo "No arguments supplied."
echo "You must inform \"<user_name>\" \"<user_email>\" \"[<user_signingkey>]\""
@BParolini
BParolini / .editorconfig
Last active February 23, 2023 13:06
Simple EditorConfig file
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
tab_width = 4
indent_size = 4
indent_style = space
insert_final_newline = true
end_of_line = lf