Skip to content

Instantly share code, notes, and snippets.

@cnelsonsic
cnelsonsic / wow_chroma.py
Created September 2, 2023 03:32 — forked from cb109/wow_chroma.py
Razer Chroma WoW Health and Mana
"""
Displays WoW health and mana status on a Razer Chroma keyboard.
Installation (Windows):
$ virtualenv venv
$ pip install requests
$ easy_install pillow
Usage:
- Run WoW client fullscreen on main monitor

Keybase proof

I hereby claim:

  • I am cnelsonsic on github.
  • I am cnelsonsic (https://keybase.io/cnelsonsic) on keybase.
  • I have a public key ASD8cW_q2_sKod_SxM8_pHdYPKPJVBrAkC_gTo2GIVUpNQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am cnelsonsic on github.
* I am cnelsonsic (https://keybase.io/cnelsonsic) on keybase.
* I have a public key ASD8cW_q2_sKod_SxM8_pHdYPKPJVBrAkC_gTo2GIVUpNQo
To claim this, I am signing this object:
@cnelsonsic
cnelsonsic / enable_scrolling.sh
Created September 18, 2013 01:04
Enable scrolling in both axes for a Logitech Trackman Marble Mouse trackball.
#!/bin/bash
# Add this to your desktop startup manager, or drop it into ~/.config/autostart
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 8
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
xinput set-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 6 7 4 5
@cnelsonsic
cnelsonsic / humansort.py
Created September 16, 2012 02:04
Sort a file's lines by asking which lines are better than the others.
'''A command line utility to sort a list of things.
It presents you two options, from which you pick the "best".
The list is sorted and presented to you in sorted order.
So, given a file with some things in it:
$ cat things.txt
asdf
qwer
zxcv
@cnelsonsic
cnelsonsic / jimmy_johns.py
Created April 20, 2012 01:04
Get a random Jimmy Johns sandwich for lunch. I can never pick.
#!/bin/env python2.7
'''This module loads the Jimmy John's menu from their website and provides
you with a random selection from their main (numbered) sandwich menu.
Recommended usage is to just run it as a script.
'''
from BeautifulSoup import BeautifulSoup
import requests
import random
import re