Skip to content

Instantly share code, notes, and snippets.

View Chambras's full-sized avatar

Marcelo Zambrana Villarroel Chambras

View GitHub Profile
@Chambras
Chambras / Questions
Created September 8, 2011 03:53
GOTO Amsterdam
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
@Chambras
Chambras / .bashrc
Last active May 6, 2020 15:57
main .bashrc file. Most of the aliases were move to .bash_aliasaes. Add this at the end of your current .bashrc
# 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
@Chambras
Chambras / .gitconfig
Last active July 19, 2021 15:12
Git config
[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
@Chambras
Chambras / .bash_aliases
Last active December 25, 2021 21:10
all my aliases
# 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'
@Chambras
Chambras / .vimrc
Created May 6, 2020 15:50
My .vimrc configurations
colorscheme badwolf
syntax enable
set tabstop=2
set softtabstop=2
set expandtab
set number
set showcmd
set cursorline
filetype indent on
set wildmenu