Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View issmirnov's full-sized avatar

Ivan Smirnov issmirnov

View GitHub Profile
@issmirnov
issmirnov / iommu.txt
Created October 6, 2022 16:57
iommu dump for AMD 7950X on ROG STRIX X670E-E GAMING WIFI
IOMMU Group 0:
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14da]
IOMMU Group 1:
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14db]
IOMMU Group 2:
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14db]
IOMMU Group 3:
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14da]
IOMMU Group 4:
00:02.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14db]
<domain type='kvm' id='6' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>win10</name>
<uuid>33369790-7916-4f71-b45d-5cee3f190dea</uuid>
<metadata xmlns:ns0="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<ns0:libosinfo>
<ns0:os id="http://microsoft.com/win/10"/>
</ns0:libosinfo>
</metadata>
<memory unit='KiB'>8290304</memory>
<currentMemory unit='KiB'>8290304</currentMemory>
@issmirnov
issmirnov / remote-tmux-copy-clipboard.md
Last active July 10, 2020 19:17 — forked from gengmao/gist:75e86c1d9d5427f9632d
Select text from a remote tmux session in mouse mode and copy back to Mac

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.

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 July 9, 2016 03:15
Authenticate me to keybase.

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: