This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
colorscheme badwolf | |
syntax enable | |
set tabstop=2 | |
set softtabstop=2 | |
set expandtab | |
set number | |
set showcmd | |
set cursorline | |
filetype indent on | |
set wildmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash commands | |
alias c='clear' | |
alias sau='sudo apt update; sudo apt list --upgradable' | |
alias sai='sudo apt upgrade' | |
alias rld='source ~/.bashrc; source ~/.bash_aliases; source ~/.profile' | |
alias tsync='sudo hwclock -s' | |
# Kafka | |
alias ktls='kafka-topics.sh --list --bootstrap-server localhost:9092' | |
alias ktc='kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = {{Name}} | |
email = {{email}} | |
[alias] | |
co = checkout | |
com = checkout main | |
cod = checkout dev | |
ci = commit -m | |
cane = commit --amend --no-edit | |
ca = !git add -A && git commit -m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
# Adding last command execution time | |
# source: https://jakemccrary.com/blog/2015/05/03/put-the-last-commands-run-time-in-your-bash-prompt/ | |
# https://stackoverflow.com/a/34812608 | |
timer_now() { | |
date +%s%N |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Day job: Software Engineer | |
What is your language of choice: Java | |
Open Source contributions: Chmbrs NotePad - An open source Android application | |
How do you use GitHub: I use it for my personal open source Android application |