Skip to content

Instantly share code, notes, and snippets.

View mierzejk's full-sized avatar

Krzysztof Mierzejewski mierzejk

  • BI Insight
  • Warsaw, Poland
View GitHub Profile
@plembo
plembo / you-need-spice-vdagent.md
Last active April 27, 2024 01:10
You need spice-vdagent

You need spice-vdagent

Debian or Kali Linux installed to as KVM (libvirtd) guests do not automatically have qemu-guest-agent or spice-vdagent installed. This will prevent seamless movement of the mouse cursor between the guest and host desktop in Virtual Machine Manager (requiring the use of a Ctrl-Alt to release the cursor from the guest window).

To cure this, install both qemu-guest-agent and spice-vdagent on each guest and reboot (the guests).

$ sudo apt install qemu-guest-agent
$ sudo apt install spice-vdagent
@dant3
dant3 / nullable.kt
Created August 4, 2017 12:38
Check if kotlin generic is nullable type
inline fun <reified T> isNullable(): Boolean = null is T