Profile cover photo
Profile photo
Rafael do Nascimento Pereira
Ich bin eine brutale Maschine. Wenn ich losgehe, gehe ich.
Ich bin eine brutale Maschine. Wenn ich losgehe, gehe ich.

Rafael do Nascimento Pereira's posts

Post has attachment
I have accidentally run "git stash drop" instead "git stash pop" or "git stash apply" and I was able to recover the stash's contents using this:

#git   #recover   #stash   

Post has attachment

I am sorry if  already asked, but I didn't find nothing related to it: I use Git on Linux and I have about 12 repositories. They are totally unrelated. Is there a CLI or GUI Git client or even script where I can know in an automated way, which repo is ahead or behind, between 2 computers I have and my (private) server? 

I would like to disable the capslock key at login time, while running ZShell.
I am running zsh 5.0.5 (x86_64-unknown-linux-gnu) and I have the following .zlogin file:

if [ "$DISPLAY" ]; then
    setxkbmap -option ctrl:nocaps

eval $(ssh-agent) > /dev/null

The ssh-agent is started, but the capslock key in not disabled. When I run the .zlogin manually it works. Any suggestions ? Thanks in advance. :)

#archlinux #zsh  

If you use tabs for indentation, this may be useful:

highlight RedundantSpaces term=standout ctermbg=Grey guibg=#ffddcc
autocmd BufWinEnter * call matchadd('RedundanSpaces', '\(\s\+$\| \+\ze\t\|^\t*\zs \+\)\(\%#\)\@!')

It highlights:

1 - trailing spaces
2 - leading spaces
3 - spaces before tabs
4 - spaces after tabs

Credit: I just extended the original idea shown here:

  #vim #tips #highlight  

Post has attachment
Again the theme "versioned kernels install" (as in arch bug tracker FS#16702), but this time I ask something different. Apparently the arch based distro manjaro, solved this issue:

Has anybody here already used this distro ?
#archlinux #kernel #versioning  

I have already searched and found some workarounds, but it means manuall work. Is there a pratical/automated way to keep the previous kernel versions (modules too) installed ? Thanks in advance.

If one uses TABs for indentation, this can be useful, it highlights redundant spaces (spaces at the end of the line, spaces before or after tabs):

highlight RedundantSpaces term=standout ctermbg=Grey guibg=#ffddcc
call matchadd('RedundantSpaces', '\(\s\+$\| \+\ze\t\|\t\zs \+\)\(\%#\)\@!')

#vim #programming  

Post has attachment

Post has attachment
Wait while more posts are being loaded