Skip to content

Instantly share code, notes, and snippets.

@neilwightman
neilwightman / nvidia-used.sh
Created March 3, 2025 13:54
nvidia-used.sh - uses nvidia-smi and bc
#!/bin/bash
used=`nvidia-smi | grep % | cut -c 47-51 | xargs | tr -d '\n'`
max=8192
echo "scale=3;($used/$max)*100" | bc
@neilwightman
neilwightman / terminator.config
Created March 27, 2015 06:19
~/.config/terminator/config
[global_config]
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
title_transmit_fg_color = "#FFFF66"
title_inactive_fg_color = "#AEAEAE"
title_transmit_bg_color = "#0076C9"
inactive_color_offset = 0.82
title_inactive_bg_color = "#000000"
[keybindings]
[profiles]
[[default]]
@neilwightman
neilwightman / conkyrc
Last active March 3, 2025 13:53
.conkyrc with nvidia vram usage
-- -*- mode: lua; -*-
-- -*- tab-width: 4 -*-
--##########################
-- conky configuration
--##########################
-- see http://conky.sourceforge.net/config_settings.html
conky.config = {
-- set to yes if you want conky to be forked in the background
background = true,