Skip to content

Instantly share code, notes, and snippets.

View waheedahmed's full-sized avatar
🏠
Working from home

Waheed Ahmad waheedahmed

🏠
Working from home
View GitHub Profile
digraph {
old [ label="Load Old Experience" ];
new [ label="Redirect to New Experience" ];
browser_load [
label = "Browser loads \nold logistration URL"
shape = oval
];
#!/usr/bin/env python3
import requests
import threading
url = "http://edx.devstack.lms:18000/oauth2/access_token/"
client_id = "client-id"
payload_token = "grant_type=password&username={}&password={}&client_id={}".format("edx@example.com", "edx", client_id)
payload_refresh = "grant_type=refresh_token&refresh_token={}&client_id={}"