Skip to content

Instantly share code, notes, and snippets.

Avatar

Ivan Smirnov issmirnov

View GitHub Profile
@issmirnov
issmirnov / remote-tmux-copy-clipboard.md
Last active Jul 10, 2020 — forked from gengmao/gist:75e86c1d9d5427f9632d
Select text from a remote tmux session in mouse mode and copy back to Mac
View remote-tmux-copy-clipboard.md

Forked from: https://gist.github.com/gengmao/75e86c1d9d5427f9632d Original Author: @gengmao Minor changes by @issmirnov, specifically update config for modern tmux and add some notes.

I like to use mouse mode in tmux to scroll text in windows/panes, however I found there is problem when I wanna select and copy text into local system clipboard.

The problem is described at https://awhan.wordpress.com/2012/04/18/tmux-copy-paste-with-mouse/. The workaround is zoom tmux pane -> turn off mouse mode -> select with Option key and copy, then go back. But it is not ideal.

Fortunately I found http://seancoates.com/blogs/remote-pbcopy and https://gist.github.com/burke/5960455. I tweak them a bit and got what I want - select text in one pane in mouse mode correctly and copy it back to Mac system clipboard.

View gitea.log
2019/08/18 01:25:35 ...les/context/panic.go:34:1() [E] PANIC:: runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:82 (0x44a620)
/usr/local/go/src/runtime/signal_unix.go:390 (0x44a44f)
/go/src/code.gitea.io/gitea/routers/repo/repo.go:329 (0x1387fbb)
/usr/local/go/src/reflect/value.go:447 (0x48f370)
/usr/local/go/src/reflect/value.go:308 (0x48edf3)
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:177 (0x9854b6)
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:137 (0x984dab)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:121 (0x9b4f29)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:112 (0x11d2a68)
@issmirnov
issmirnov / keybase.md
Created Jul 9, 2016
Authenticate me to keybase.
View keybase.md

Keybase proof

I hereby claim:

  • I am issmirnov on github.
  • I am ismirnov (https://keybase.io/ismirnov) on keybase.
  • I have a public key ASBJc4HkX8miV8dKeoe3dSmzX-EctgssUKyudFf611c5jAo

To claim this, I am signing this object: