Skip to content

Instantly share code, notes, and snippets.

@rvrosm
rvrosm / tmux-cheatsheet.markdown
Created December 14, 2018 13:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@rvrosm
rvrosm / README.md
Created December 14, 2018 11:55 — forked from subfuzion/README.md
vim/neovim configuration

I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.

It's currently synchronized with my .vimrc config except for a block of neovim-specific terminal key mappings.

This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.

These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,

@rvrosm
rvrosm / hhkb.ahk
Last active March 2, 2018 10:32 — forked from ViViDboarder/hhkb.ahk
Modified HHKB Pro AHK with Dip Switch EmulationDefinitely a work in progress
; HHKB Pro2 emulation by AndrewZorn
; for use with QWERTY
; with DIP in position 011100
; (Mac Mode, Backspace, Left Fn)
;
; inspired by and based on ripster's
;
; Modified with Dip Switches by ViViDboarder
;
; "Inser" becomes `/~ because Backspace is too big
@rvrosm
rvrosm / gfwlistaction.sh
Created December 9, 2017 15:57
Bash / Awk script that converts GFWList into Privoxy action file
#!/bin/bash
#
# Generate Privoxy action file from gfwlist.
# $1 = proxy, example: socks5://127.0.0.1:9050
url='https://raw.githubusercontent.com/gfwlist/tinylist/master/tinylist.txt'
url='https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt'
wget -qO- "$url"| base64 -d |
gawk -f <(sed '/^#<:>#/!d;s///' "$0") -v proxy="$1" -v verbose="$3"