Skip to content

Instantly share code, notes, and snippets.

javascript:location.href='http://attentive.us/api/article/new/?url='+encodeURIComponent(location.href)
@microft
microft / gist:9c2c5343b95459a41dc4
Last active March 31, 2024 16:06
vbox vagrant mount fix
[default] -- /vagrant
Failed to mount folders in Linux guest. This is usually beacuse
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:
mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant
@microft
microft / gist:5213590
Created March 21, 2013 14:46
my ~/.gitconfig
[user]
name = Luis Miguel Braga
email = luismiguel@silvabraga.com
[color]
ui = true
[alias]
lol = log --oneline --graph --decorate
pullall = submodule foreach git pull origin master
[core]
excludesfile = ~/.gitignore_global
@microft
microft / gist:4566260
Created January 18, 2013 17:18
Vim function to forget undo history. Very usefull.
" A function to clear the undo history
function! <SID>ForgetUndo()
let old_undolevels = &undolevels
set undolevels=-1
exe "normal a \<BS>\<Esc>"
let &undolevels = old_undolevels
unlet old_undolevels
endfunction
command -nargs=0 ClearUndo call <SID>ForgetUndo()