Skip to content

Instantly share code, notes, and snippets.

View adamheins's full-sized avatar

Adam Heins adamheins

View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@tobym
tobym / vim_url_regex_syntax_hightlighting.vim
Created September 17, 2010 20:34
Vim-formatted regular expression to match a URL for syntax highlighting
" File: .vim/syntax/rdoc.vim
" RDoc inline links: protocol optional user:pass@ sub/domain .com, .co.uk, etc optional port path/querystring/hash fragment
" ------------ _____________________ --------------------------- ________________________ ----------------- __
syntax match rdocInlineURL /https\?:\/\/\(\w\+\(:\w\+\)\?@\)\?\([A-Za-z][-_0-9A-Za-z]*\.\)\{1,}\(\w\{2,}\.\?\)\{1,}\(:[0-9]\{1,5}\)\?\S*/
HtmlHiLink rdocInlineURL htmlLink