How to switch over from SD-card to USB-attached device (USB thumbstick, USB enclosed SSD or HDD, etc.) to have more durable storage option.
-
Connect USB device to your RPI
-
Make sure USB device visible by the system
| """ | |
| Usage: | |
| Make sure that redis is running on localhost (or adjust the url) | |
| Install uvicorn or some other asgi server https://asgi.readthedocs.io/en/latest/implementations.html | |
| pip install -u uvicorn | |
| Install dependencies |
| import SwiftUI | |
| struct ContentView : View { | |
| var body: some View { | |
| ZStack(alignment: Alignment.top) { | |
| MapView() | |
| SlideOverCard { | |
| VStack { | |
| CoverImage(imageName: "maitlandbay") | |
| Text("Maitland Bay") |
| # docker-compose up -d up | |
| # (initially) docker-compose up -d mongo-init-replica | |
| # docker-compose up -d traefik | |
| # docker-compose up -d rocketchat | |
| # | |
| # update rc: | |
| # docker-compose pull && docker-compose up -d rocketchat | |
| # | |
| version: '2' |
| import AVFoundation | |
| var audioPlayer: AVAudioPlayer! | |
| let soundURL = Bundle.main.url(forResource: "soundName", withExtension: "soundFormat") | |
| do { | |
| audioPlayer = try AVAudioPlayer(contentsOf: soundURL!) | |
| } catch { | |
| print(error) |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import web, json, time, mpd, collections | |
| STATIONS = { | |
| "FoxNews" : "mmsh://209.107.209.181:80/D/138/13873/v0001/reflector:24137?MSWMExt=.asf", | |
| "Classic" : "http://radio02-cn03.akadostream.ru:8100/classic128.mp3", | |
| "Jazz": "http://streaming208.radionomy.com:80/A-JAZZ-FM-WEB" | |
| } |
| class InvalidStateException(Exception): | |
| pass | |
| class MissingStateMachineConfigurationException(Exception): | |
| pass | |
| from types import DictionaryType | |
| class StateMachine(object): |