Skip to content

Instantly share code, notes, and snippets.

Avatar
🐍
coding MicroPython and playing with hardware

Andy Piper andypiper

🐍
coding MicroPython and playing with hardware
View GitHub Profile
@andypiper
andypiper / andypiper-ld+json.json
Last active Jul 31, 2022
My JSON-LD Person object
View andypiper-ld+json.json
{
"@context": "http://schema.org/",
"@type": "Person",
"name": "Andy Piper",
"affiliation": [{
"@type": "Organization",
"name": "Games at Work dot Biz",
"sameAs": [
"https://twitter.com/gamesatwork_biz",
"https://gamesatwork.biz"
View key-light-mini-api.md
  • [ip]:[port]/elgato/accessory-info
  • [ip]:[port]/elgato/battery-info
  • [ip]:[port]/elgato/lights
  • [ip]:[port]/elgato/lights/settings

GET /elgato/accessory-info

@andypiper
andypiper / rc2014.md
Created Apr 12, 2022 — forked from jblang/rc2014.md
RC2014 Links
View rc2014.md
@andypiper
andypiper / temp-check.py
Created Mar 21, 2022 — forked from lesp/temp-check.py
Using a BME688 Temperature sensor with Pimoroni's Badger 2040. Code is based on the BME688 example, but with added Badger 2040 code.
View temp-check.py
"""BME688 / BME680 demo
This demo will work for both the BME680 and BME688.
"""
import time
from breakout_bme68x import BreakoutBME68X, STATUS_HEATER_STABLE
from pimoroni_i2c import PimoroniI2C
import badger2040
import machine
badger = badger2040.Badger2040()
View api-presentation-links.txt
View kill-win-process
Get–Process "notepad" | Stop–Process
@andypiper
andypiper / ish-apks.txt
Last active Jul 11, 2022
Setup iSH / Alpine Linux on iPad
View ish-apks.txt
# edit the login message
vi /etc/motd
# switch to usable repos - iSH defaults often failed with EOF errors
echo https://dl-cdn.alpinelinux.org/alpine/v3.13/main > /etc/apk/repositories
echo https://dl-cdn.alpinelinux.org/alpine/v3.13/community >> /etc/apk/repositories
# install some basics
apk add zsh bash
apk add sed attr dialog dialog-doc bash bash-doc bash-completion grep grep-doc
View twitter_collection_examples.py
import json
from requests_oauthlib import OAuth1Session
# For a blog post describing this process more, see:
# https://medium.com/analytics-vidhya/creating-a-twitter-collection-via-api-1378ecfe20df
api_key = 'your api key'
api_secret_key = 'your api secret key'
access_token = 'your access token'
@andypiper
andypiper / badges.md
Last active Jul 31, 2022
Twitter API version badges, based on shields.io
@andypiper
andypiper / twit_twurl.sh
Last active Dec 16, 2019 — forked from shapeshed/twit_twurl.sh
Tweet from the command line using twurl & OAuth
View twit_twurl.sh
################################
#!/usr/bin/env bash
# File: twit_twurl.sh
# Description: Tweet from the command line using twurl & OAuth
#
# Copyright 2010 George Ornbo (Shape Shed)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at