Skip to content

Instantly share code, notes, and snippets.

View disq's full-sized avatar

Kemal disq

View GitHub Profile
@disq
disq / gpu-monitor.sh
Created May 28, 2011 23:23
GPU Monitor to send mail when load drops to 0%
#!/bin/sh
RET=`DISPLAY=:0 aticonfig --odgc --adapter=all`
ZEROCNT=`echo ${RET}|grep GPU|grep "0%"|wc -l`
if [ $ZEROCNT -gt 0 ]; then
if [ -e ~/gpu-monitor.stop ]; then
echo "$ZEROCNT gpu still idle"
exit 0
fi
sleep 10
RET=`DISPLAY=:0 aticonfig --odgc --adapter=all`
@disq
disq / od.sh
Created May 27, 2011 11:37
Scripts to overclock & start bitcoin miners on boot
#!/bin/sh
# ln -s /tmp /home/bitcoin/.AMDOverdriveCtrl for better usb usage (no need to individually sync as well)
echo "sync..."
sync # one time only
echo "doing 5870 gigabyte"
rm -f /home/bitcoin/.AMDOverdriveCtrl/default.ovdr >/dev/null 2>&1
cp /home/bitcoin/AMDODCfiles/5870-gigabyte.ovdr /home/bitcoin/.AMDOverdriveCtrl/default.ovdr