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 usb.core | |
import usb.util | |
PSU_VALUES_DICT = { | |
'AC_IN': (0x31, 0x33), | |
'V_12V': (0x31, 0x34), | |
'V_5V': (0x31, 0x35), | |
'V_3V3': (0x31, 0x36), | |
'I_12V': (0x31, 0x37), | |
'I_5V': (0x31, 0x38), |
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 | |
echo "Cleaning unused docker files..." | |
docker ps --all --quiet --filter="status=exited" | xargs --no-run-if-empty docker rm --volumes | |
IMAGES=`docker images | awk '/^<none>/ { print $3 }'` | |
if [[ $IMAGES ]]; then | |
echo -e "\nCleaning untagged images..." | |
docker rmi --force $IMAGES | |
fi |
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 re, argparse, sys, time | |
from serial import Serial | |
''' | |
Cleanflight/betaflight/iNav blackbox dumper. | |
WARNING: the target bust be compiled with USE_FLASH_TOOLS defined. | |
''' | |
CLI_DELIMITER = '# ' |