:sp# opens another file in a vertical window :vs # opens another file in a horizontal window
20171229
vi tricks
20171220
Get website cert info via CLI
echo | openssl s_client -showcerts -servername r.inq.ph -connect r.inq.ph:443 2>/dev/null | openssl x509 -inform pem -noout -text
What's your vimrc?
set number syntax on set tabstop=2 set shiftwidth=2 set autoindent set cursorline highlight CursorLine term=bold cterm=bold ctermbg=DarkBlue set expandtab set showmatch
20170119
.bashrc / .profile
PS1="\n\[\e[30;1m\](\[\e[34;1m\]\u@\[\e[32;1m\]\h\[\e[30;1m\])-(\[\e[31;1m\]\t\[\e[30;1m\])-(\[\[\e[32;1m\]\w\[\e[30;1m\])\[\e[30;1m\]\n(jobs:\[\e[34;1m\]\j\[\e[30;1m\])\`if [ \$? -eq 0 ]; then echo \[\e[32m\] \(^_^\); else echo \[\e[31m\] \(o\.O\) ; fi\`\[\e[0m\] $ "
Subscribe to:
Posts (Atom)