Skip to content

Instantly share code, notes, and snippets.

@matheusramos
matheusramos / docker-clean.sh
Created March 27, 2018 22:00
Clean everything dockers
sudo docker rmi $(sudo docker images -qa)
sudo docker rm -vf $(sudo docker ps -aq)
sudo docker rmi -f $(sudo docker images -aq)
sudo docker volume prune -f
sudo docker system prune -af
{
"workbench.startupEditor": "none",
"extensions.ignoreRecommendations": false,
"editor.tabSize": 2,
"editor.renderWhitespace": "all",
"editor.fontFamily": "'Fira Code', Inconsolata, 'Droid Sans Mono', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"vscode_custom_css.imports": ["file:///home/matheus/dev/vscode/styles.css"]
}
@matheusramos
matheusramos / .gvimrc
Created March 5, 2018 00:56
My personal gvimrc config file
" Make external commands work through a pipe instead of a pseudo-tty
"set noguipty
" You can also specify a different font, overriding the default font
"if has('gui_gtk2')
" set guifont=Bitstream\ Vera\ Sans\ Mono\ 12
"else
" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
"endif
@matheusramos
matheusramos / .vimrc
Created March 5, 2018 00:54
My personal vimrc config file
syntax on "enable syntax highlight
set nu "line number
"line highlight
set cursorline
" For regular expressions turn magic on
set magic
@matheusramos
matheusramos / fstab
Created January 30, 2018 20:42
My personal fstab file
# Files
/dev/sdb2 /mnt/files ntfs defaults 0 0
# Windows
/dev/sda2 /mnt/windows ntfs defaults 0 0
@matheusramos
matheusramos / .gitconfig
Last active January 30, 2018 18:28
My personal gitconfig
[alias]
s = status
st = status
ci = commit
co = checkout
br = branch
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
[color]
@matheusramos
matheusramos / .bashrc
Last active March 1, 2016 21:20
My personal .bashrc
# Kill all processes that contains the string from the first parameter.
monsterkill() {
read -p "Are you sure? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
ps -ef | grep $1 | grep -v grep | awk '{print $2}' | xargs kill -9
fi
}