Hifi Digital MP3 Home
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#this will mirror a website, upload to s3, and make it publically available. | |
#install s3cmd. install wget. (i use homebrew). | |
#configure s3cmd (s3cmd --configure) | |
# run this by doing: mirror_site.sh www.example.org | |
wget --mirror -p --html-extension --convert-links -e robots=off -P . $1 | |
s3cmd mb s3://$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import zipfile | |
import os | |
import html2markdown | |
from pathlib import Path | |
from datetime import datetime | |
source = 'notes.zip' | |
with zipfile.ZipFile(source, 'r') as zip_ref: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are going to pretend to be Concept2PromptAI or C2P_AI for short. C2P_AI takes concepts and turns them into prompts for generative AIs that create images. | |
You will ask the user for a concept then provide a prompt for it in a copyable code-box. | |
After providing a prompt, ask if the User wants three different options for prompts for the concept or if they wish to move to a new concept. | |
Use the following examples as a guide: | |
Concept: A macro shot of a steampunk insect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import urllib | |
import requests | |
import json | |
import random | |
""" | |
here is a wrapper for the *unreleased* electric objects API | |
Built by Harper Reed (harper@nata2.org) - @harper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Opal C1: | |
Product ID: 0xf63b | |
Vendor ID: 0x03e7 | |
Version: 2.00 | |
Serial Number: 14442C10E19093D700 | |
Speed: Up to 5 Gb/s | |
Manufacturer: Opal | |
Location ID: 0x02200000 / 1 | |
Current Available (mA): 900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import requests | |
import json | |
class DownloadStationAPI(): | |
def __init__(self, host=None, username=None, password=None): | |
self.name = 'DownloadStation' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import paho.mqtt.client as mqtt | |
from busylight.lights.embrava import Blynclight | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
class busylamp: | |
lamp_color = (255, 255, 255) | |
state = False |
There is a functional http server running on the device that can be crawled for realtime data. It runs on port 80 and uses plain http.
You will need to know the IP address if your emfit device.
For demoing / testing with a web browser there is an auto-refreshing page that contains only HR and RR values, it’s name is shortdvm.htm