Skip to content

Instantly share code, notes, and snippets.

@jessejoe
jessejoe / gist:e731f810e3c285dc2474
Last active August 29, 2015 14:03
Add a simple on-then-off function for ouimeaux with retries: https://github.com/iancmcc/ouimeaux/issues/31
15:35:45 j@i7:/Library/Python/2.7/site-packages$ diff ouimeaux/server/__init__.py ouimeaux/server/__init__.py.bak
79c79
< if action not in ('on', 'off', 'toggle', 'on_off'):
---
> if action not in ('on', 'off', 'toggle'):
14:44:54 jarzynka@i7:/Library/Python/2.7/site-packages$ diff ouimeaux/device/switch.py ouimeaux/device/switch.py.bak
2,3c2
< import logging
@jessejoe
jessejoe / gist:b1bb5e92d0e524cf1d0379f12fcf3171
Created May 19, 2016 15:37
Get github repos contributed to for the paste year.
"""
Get all your repos contributed to for the past year.
This uses Selenium and Chrome to login to github as your user, go through
your contributions page, and grab the repo from each day's contribution page.
Requires python3, selenium, and Chrome with chromedriver installed.
Change the username variable, and run like this: