mkdir proxy
cd proxy
# Copy the proxy.js file
npm install http net http-proxy readline-sync ucipass-logger --save
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
nvidia-smi > /tmp/c-nvidia-smi.out | |
header_end=$(nvidia-smi | grep -n "Processes:" | cut -d: -f1) | |
cat /tmp/c-nvidia-smi.out | head -n $((header_end)) | |
echo "| GPU PID Command GPU Memory User |" | |
echo "| Usage |" | |
echo "|=============================================================================|" |