Note that ANY flash update will wreck the extroot configuration. I didn't realize that and had to:
- Take the USB out and reboot so overlay would detach
- Repartition/format the USB
- Set up extroot from scratch.
from threading import Event | |
from time import sleep | |
from traceback import print_exception | |
from multiprocessing import Pool, Manager | |
from queue import Full | |
from signal import signal, SIGTERM, SIGINT | |
class Consumer1: | |
def __init__(self): | |
print("Initializing Consumer1 ...") |
// http://maxwellito.github.io/vivus/ | |
// animate the appearance / disappearance? | |
// eight static | |
// two - opposite direction | |
// three in a circle | |
// randomly moving clickers | |
// shrinking / growing | |
import { SVG, easing, List, Runner, Timeline } from '@svgdotjs/svg.js' | |
import '@svgdotjs/svg.topath.js' // might need spinning disks |
Note that ANY flash update will wreck the extroot configuration. I didn't realize that and had to:
// ==UserScript== | |
// @name MMI CSV | |
// @namespace K-Dizzle | |
// @version 1.0 | |
// @description Adds a button to download MMI results as a CSV | |
// @author K-Dizze | |
// @match https://mmi.run/* | |
// @grant none | |
// @require https://cdn.jsdelivr.net/gh/uzairfarooq/arrive/minified/arrive.min.js | |
// ==/UserScript== |
<style> | |
* { | |
font-family: Roboto; | |
} | |
li { | |
margin: 5px 0; | |
} | |
</style> |
"use strict"; | |
var arriveUniqueId = 0; | |
var utils = (function() { | |
var matches = HTMLElement.prototype.matches | |
|| HTMLElement.prototype.webkitMatchesSelector | |
|| HTMLElement.prototype.mozMatchesSelector | |
|| HTMLElement.prototype.msMatchesSelector; | |
return { |
const axios = require('axios') | |
const TuyAPI = require('tuyapi'); | |
var connected = false; | |
var washerWasOn = false; | |
// follow these instructions to get the key and id for your plug: | |
// https://github.com/AMoo-Miki/homebridge-tuya-lan/wiki/Setup-Instructions | |
const washer = new TuyAPI({ | |
id: 'YOUR ID', |
// A script that runs a raspberry pi to receive commands from an echo | |
// and control a garage door opener wired to the GPIO | |
// To set up the Echo, follow this guide: | |
// https://read.acloud.guru/how-to-build-your-own-alexa-voice-activated-iot-smart-lamp-for-less-than-35-9820ccd07516 | |
// To compile this script, use the Makefile in the subscribe_publish_sample of the AWS IoT Device SDK. You'll | |
// need to link in the wiringPi library. | |
// If you are having policy issues, you can create a super-permissive policy that will let your device do anything: |
# -*- coding: utf-8 -*- | |
# style_transfer.py <content> <style> | |
# CUDA_VISIBLE_DEVICES=3 python style_transfer.py walk.jpg kandinsky.jpg | |
import sys | |
content_path = sys.argv[1] | |
style_path = sys.argv[2] | |
max_dim = 1024 | |
total_variation_weight=30 |