Skip to content

Instantly share code, notes, and snippets.

@singer
singer / crlf_to_lf.sh
Created September 3, 2017 15:03
Convert line-endings for whole directory tree ignoring git forlder
find . -path ./.git -prune -o -type f -exec dos2unix {} \;
@singer
singer / vim-tips.md
Last active August 2, 2017 08:19
vim

vim-tips

vim go to position in line

f[char] or F[char] (backwards)

vim surround with quotes

given print(Hello world)

@singer
singer / tmux-tips.md
Last active August 1, 2017 15:51
tmux type in all panels
@singer
singer / enlightenment-tips.md
Last active January 31, 2025 17:53
Enlightment maximize window on double click
@singer
singer / gen_openssl.sh
Last active July 25, 2017 15:23
generate self-signed ssl pair
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /path/to.key -out /path/to.crt
@singer
singer / .bashrc
Created July 21, 2017 14:56
Reclaim <c-s> for save file
bind -r '\C-s'
stty -ixon
@singer
singer / .vimrc
Created July 21, 2017 14:52
very basic vimrc
syntax on
filetype indent plugin on
set tabstop=8 expandtab shiftwidth=4 softtabstop=4
:nmap <c-s> :w<CR>
:imap <c-s> <Esc>:w<CR>a
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
let g:ycm_confirm_extra_conf = 0
@singer
singer / watch_pytest.sh
Last active July 20, 2017 11:50
watch pytest with colors watch preserve colors
watch -c -n 5 pytest --color=yes