It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
This file contains hidden or 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
| // MOTU Ultralite-mk5 API Bridge | |
| // Author: mino | |
| // Date: 2023-02-22 | |
| // License: MIT | |
| // | |
| // Description: | |
| // ------------ | |
| // I was looking for a easy way to mute and umute my main speakers via a Stream Deck button on the MOTU Ultralite-mk5. | |
| // Unfortunately, Motu does not provide an HTTP API for this series, this feature is only available on the AVB devices. | |
| // But with a bit of tinkering and reverse engineering of the Motu CueMix 5 app, it is possible to understand the used protocols and to send arbitrary commands. |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| Serving ptpython using telnet | |
| I ran into several issues when writing this piece of code, both with ptpython | |
| and prompt_toolkit. Find below a short description for each of them. | |
| Ptpython issues: | |
| ---------------- |
This file contains hidden or 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
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |
This file contains hidden or 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
| # Define some special things | |
| SPECIAL = '*|' | |
| ALPHABET = '10' | |
| EPSILON = None | |
| # functions | |
| def automaton_print(automaton): | |
| "Neatly prints the automaton" | |
| states, alphabet, start, final, transfer = automaton | |
| print('STATES : ', states) |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!