Skip to content

Instantly share code, notes, and snippets.

@alantian
alantian / nvidia-gpu-sensor.py
Created October 2, 2016 22:37
KDE KSysGuard NVIDIA GPU temperature sensor
#!/usr/bin/env python3
# KSysGard sensor for NVIDIA GPU temperature. Supports multiple GPUs.
# Needs: Python 3 and nvidia-smi
import subprocess
import xml.etree.ElementTree as ET
def get_xml_tree():
return ET.fromstring(subprocess.check_output(['nvidia-smi', '-q', '-x']))
@alantian
alantian / nvidia-gpu-sensor.pl
Created October 2, 2016 21:55 — forked from frantic1048/nvidia-gpu-sensor.pl
KDE KSysGuard NVIDIA GPU temperature sensor
#!/usr/bin/perl -w
# act as a KSysGuard sensor
# provides NVIDIA GPU temperature via `nvidia-settings`
# Usage
# 1. save this file, make sure it has a exec permission
# 2. in KSysGuard's menu, open `File` -> `Monitor Remote Machine`
# 3.1 in new dialog, type `Host` whatever you want
# 3.2 set `Connection Type` to `Custom command`
@alantian
alantian / tmux-cheatsheet.markdown
Created November 24, 2015 13:15 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname