I hereby claim:
- I am macdiesel on github.
- I am macdiesel (https://keybase.io/macdiesel) on keybase.
- I have a public key whose fingerprint is 3E73 CEE3 2202 65BF 2C9D 525F FBC0 1157 DB52 40B6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import os | |
| import sys | |
| import requests | |
| import click | |
| HIPCHAT_API_URL = "http://api.hipchat.com" | |
| NOTIFICATION_POST = "/v2/room/{}/notification" | |
| AUTH_HEADER = "Authorization: Bearer {}" | |
| #!/bin/sh | |
| # This script will reset the bluetooth on an OSX when bluetooth is unresponsive after waking from sleep. | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
| result = db.modulestore.active_versions.aggregate( | |
| [ | |
| {"$group": { "_id": { course: "$course", org: "$org", run: "$run" } } } | |
| ] | |
| ); | |
| printjson(result.toArray()); |
| function getUrlVars(){ | |
| var vars = [], hash; | |
| var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
| for(var i = 0; i < hashes.length; i++) | |
| { | |
| hash = hashes[i].split('='); | |
| vars.push(hash[0]); | |
| vars[hash[0]] = hash[1]; | |
| } | |
| return vars; |