Skip to content

Instantly share code, notes, and snippets.

@lukecyca
lukecyca / gist:9f88aad1b6473047ec7a0d5a8afd37fe
Created July 19, 2020 18:18
Capture data from MrCool Cielo mini split
import requests
import json
session = requests.Session()
def login(username, password):
# Initial request - get session id
r = session.get('https://smartcielo.com/')
@lukecyca
lukecyca / chevy.py
Created April 21, 2020 07:07
Python logon function for my.chevrolet.com & my.gm.ca
import requests
import urllib
import re
import json
URLSET = {
'usa': {
'home': 'https://my.chevrolet.com/home',
'oc_login': 'https://my.chevrolet.com/oc_login',
'loginSuccessData': 'https://my.chevrolet.com/api/init/loginSuccessData'
@lukecyca
lukecyca / gist:907c4a62758c068fd464
Last active July 13, 2024 17:29
Impersonating a user with the JIRA API
"""
Example of making a request to JIRA as a trusted application.
In this example, we create a new issue as an arbitrary user.
More information on this technique at:
https://answers.atlassian.com/questions/247528/how-do-you-impersonate-a-user-with-jira-oauth
"""
import oauth2
import time
@lukecyca
lukecyca / keybase.md
Created April 11, 2014 20:26
Keybase Declaration

Keybase proof

I hereby claim:

  • I am lukecyca on github.
  • I am lukecyca (https://keybase.io/lukecyca) on keybase.
  • I have a public key whose fingerprint is B3CB A627 E70B 2539 1295 0635 E9B5 4621 3ECF 46DD

To claim this, I am signing this object: