Skip to content

Instantly share code, notes, and snippets.

@jumpingGrendel
jumpingGrendel / sample_in_app_template.html
Created August 31, 2020 20:05
Sample In-App Automation template for use with Airship and Movable Ink
<!DOCTYPE html>
<html><head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, user-scalable=no" />
<title>Moveable Ink / Airship</title>
<style>
* {
margin: 0;
padding: 0
}
echo "scale=2; `curl --progress-bar -w "%{speed_download}" http://spdtst-seat3.wa.centurylink.net/speedtest/random2500x2500.jpg -o test.zip` / 131072" | bc | xargs -I {} echo {}Mb\/s
@jumpingGrendel
jumpingGrendel / StashBoard.py
Created March 29, 2012 18:40
stub of a class for managing stashboard via api
import oauth2 as oauth
import json
import urllib
class StashBoard:
def __init__(self, creds):
consumer = oauth.Consumer(key=creds["STASHBOARD_CONSUMERKEY"], secret=creds["STASHBOARD_SECRET"])
token = oauth.Token(creds["STASHBOARD_OAUTH_KEY"], creds["STASHBOARD_OAUTH_SECRET"])
self.client = client = oauth.Client(consumer, token=token)