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 python3 | |
| """ | |
| Unofficial CLI tool to control FNIRSI Power Source (DC580, DC6006L, ...) | |
| See Also: | |
| - https://github.com/jcheger/fnirsi-dc580-protocol | |
| """ | |
| import sys | |
| import os |
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 python3 | |
| """ | |
| Unofficial CLI tool to control FNIRSI Power Source (DC580, DC6006L, ...) | |
| See Also: | |
| - https://github.com/jcheger/fnirsi-dc580-protocol | |
| """ | |
| import sys | |
| import os |
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 python3 | |
| import sys | |
| import os | |
| from serial import Serial | |
| def read_frame(io): | |
| sbuf = io.read(1) | |
| if not sbuf[0] == 0x7E: return None |
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
| #!/bin/sh | |
| : ${KERNEL:=5.4.51-piCore} | |
| : ${VER:=12.x} | |
| : ${REPO:="http://repo.tinycorelinux.net"} | |
| : ${ARCH:=armv6} | |
| usage() { | |
| local p=${0##*/} | |
| cat <<EOF 1>&2 |
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
| # | |
| # MicroPython driver for WaveShare 4.2inch e-Paper Display (EPD) | |
| # | |
| # Current target of this code is ESP8266. | |
| # | |
| # ESP8266 requires following GPIO state on boot, and this | |
| # conflicts with SPI pinout. | |
| # | |
| # - GPIO15=0 # SPI CS | |
| # - GPIO2=1 # LED-2 |
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 python3 | |
| import sys | |
| import os | |
| import re | |
| import time | |
| import pigpio | |
| import logging | |
| from collections import OrderedDict |
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 python3 | |
| import sys | |
| import os | |
| import re | |
| import pigpio | |
| from collections import OrderedDict | |
| from contextlib import contextmanager | |
| def help(): |
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/perl | |
| sub usage { | |
| my $p = ($0 =~ m|[^/]+$|, $&); | |
| print STDERR <<EOF; | |
| $p - Add linecolor to input | |
| Usage: $p <perlexpr> [color] [<perlexpr> <color> ...] | |
| Example: | |
| \$ lsusb -tv | $p '!/hub/io' | |
| \$ lsusb -tv | $p '!/hub/io' green |
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/perl | |
| use English; | |
| use Getopt::Long; | |
| use YAML; | |
| use JSON; | |
| use strict; | |
| sub help { | |
| my $p = $0; $p =~ s|^.*/||; |
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/perl | |
| use English; | |
| use Getopt::Long; | |
| use YAML; | |
| use JSON; | |
| use strict; | |
| sub help { | |
| my $p = $0; $p =~ s|^.*?/||; |