blog.glenux.net Chronicles of a free data

Recent Posts

  • April 29, 2022

    vim tips: base64 encoding or decoding the selected text

    I’ve been writing a lot of these huge Kubernetes YAML files lately. Here’s a trick that has saved me a lot of time when editing secrets, which contain base64 encoded values.

    First, add the following lines to your .vimrc

    vnoremap <leader>64d y:let @"=system('base64 -w 0 --decode', @")<cr>gvP
    vnoremap <leader>64e y:let @"=system('base64 -w 0', @")<cr>gvP
    

    This is a shortcut that, when you select a text and press <leader>64e or <leader>64d copies the selected content in the unnamed register @", replace the register content with the encoded or decoded text, then paste the new text inplace.

  • October 12, 2015

    360° of Tech - October 2015

    Hi folks! In this issue, we continue to explore the topic of micro-services management, and we begin talking about mesh VPN, which is one of our current needs at netcat_.

  • September 05, 2015

    360° of Tech - September 2015

    I’m proud to announce the first issue of 360° of Tech, a monthly round-up of the most inspiring articles & links I’ve read.