Skip to content

Instantly share code, notes, and snippets.

View felipepodesta's full-sized avatar
👨‍💻
Stairway To Heaven

Felipe Podestá felipepodesta

👨‍💻
Stairway To Heaven
View GitHub Profile
# https://www.linode.com/docs/security/use-public-key-authentication-with-ssh
# /etc/update-motd.d
mkdir -p ~/.ssh && sudo chmod -R 700 ~/.ssh/
# add node user
sudo adduser node
sudo adduser node sudo
# packages
@felipepodesta
felipepodesta / gist:ba64e91e0673d3ea81271e0ebef36810
Last active January 20, 2022 02:01 — forked from guilherme/gist:9604324
Git pre-commit hook that detects if the developer forget to remove all the javascript console.log before commit.
#!/bin/bash
# Redirect output to stderr.
exec 1>&2
# enable user input
exec < /dev/tty
consoleRegexp='^[^-].*.*console.log'
filenameRegexp='\(^[^-].*.*console.log(\|^+++\)'
@felipepodesta
felipepodesta / .gitconfig
Created January 6, 2022 12:38 — forked from rab/.gitconfig
A good starting point for ~/.gitconfig
# -*- Conf -*-
[color]
branch = auto
diff = auto
status = auto
showbranch = auto
ui = true
# color.branch
# A boolean to enable/disable color in the output of git-branch(1). May be set to always, false (or
@felipepodesta
felipepodesta / terminal_settings.md
Created January 6, 2022 12:36 — forked from kimberlysuazo/terminal_settings.md
Setting up your terminal to customize your shell prompt, autocompletion and colors

Setting up a colorful, user-friendly terminal

I found that setting up my terminal shell to make it easily readable took alot of digging around. I'm just sharing my settings here to hopefully minimize the setup time for someone else.

.gitconfig

Customize colors and add shortcuts for common git commands.

  • Open your .gitconfig file
open ~/.gitconfig 
@felipepodesta
felipepodesta / .gitconfig
Created January 6, 2022 12:36 — forked from eramella/.gitconfig
PS Win 10 Set up
[push]
default = simple
[core]
pager = cat
editor = code --wait
autocrlf = true
[color]
ui = true
[color "status"]
changed = red bold
@felipepodesta
felipepodesta / .gitconfig
Created January 6, 2022 12:36 — forked from fred/.gitconfig
my .gitconfig
[color]
branch = auto
diff = auto
status = auto
interactive = auto
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
@felipepodesta
felipepodesta / .gitconfig
Created January 6, 2022 12:34 — forked from fred/.gitconfig
my nice .gitconfig, to put on your home directory
[color]
branch = auto
diff = auto
status = auto
interactive = auto
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
#!/bin/bash
# Author: Lucas Henrique M Dourado
# Ubuntu version supported: 18.04 LTS 64Bit
# EXECUTE
# sudo chmod +x script-configure-ubuntu18.94-amd64.sh
# ./script-configure-ubuntu18.94-amd64.sh
#INSTRUCTIONS
@felipepodesta
felipepodesta / .gitconfig
Created January 6, 2022 12:31 — forked from sreeix/.gitconfig
My .gitconfig
[user]
email = [email protected]
name = V Sreekanth
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
#!/bin/bash
# Author: Daniel Alvarenga Lima
# Ubuntu version supported: 18.04 LTS 64Bit
# EXECUTE
# sudo chmod +x script-configure-ubuntu18.94-amd64.sh
# ./script-configure-ubuntu18.94-amd64.sh
#INSTRUCTIONS