Skip to content

Instantly share code, notes, and snippets.

View itsundef's full-sized avatar
☺️
:)

Prashant Kumar itsundef

☺️
:)
View GitHub Profile
@itsundef
itsundef / enhanced-nvidia-smi.md
Created May 19, 2025 12:35 — forked from padeoe/enhanced-nvidia-smi.md
Show Username & full process command with nvidia-smi

For typical use cases, I prefer using nvitop to view detailed information. This script offers a dependency-free implementation.

The script enhances the functionality of nvidia-smi and provides the following info:

  • Username
  • full process Command
  • GPU ID
  • PID

This is useful on multi-user servers and can be used to quickly identify which user is using the GPU and running what kind of program.

function generateUUID() {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e => {
const t = 16 * Math.random() | 0;
return ("x" === e ? t : 3 & t | 8).toString(16)
}
))
}
@itsundef
itsundef / wpa_supplicant.conf
Created October 12, 2019 07:18
raspbian wpa_supplicant
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="YOURSSID"
psk="YOURPASSWORD"
scan_ssid=1
}
@itsundef
itsundef / libinput-gestures.conf
Last active December 31, 2023 23:01
macOS like gestures on linux with libinput-gestures on KDE - Configure switching shortcuts for workspace / virtual desktops similar to line 50-55.
# Configuration file for libinput-gestures.
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored. Currently
# "gesture" and "device" configuration keywords are supported as
# described below. The keyword can optionally be appended with a ":" (to
# maintain compatibility with original format configuration files).
@itsundef
itsundef / keybase.md
Last active September 11, 2018 13:18

Keybase proof

I hereby claim:

  • I am itsundef on github.
  • I am itsundef (https://keybase.io/itsundef) on keybase.
  • I have a public key ASBWbAAzgJ5RLTbxMcVU680bv-_xx-N9AP_0zUAlpPEC1Ao

To claim this, I am signing this object: