Skip to content

Instantly share code, notes, and snippets.

Francesco Palmarini erpalma

Block or report user

Report or block erpalma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@erpalma
erpalma / blackbox_dumper.py
Created Jul 3, 2016
Fast python script to download blackbox log in cleanflight / betaflight / iNav.
View blackbox_dumper.py
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 = '# '
@erpalma
erpalma / docker-cleaner
Created Jun 5, 2018
Cleaning up some docker mess
View docker-cleaner
#!/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
You can’t perform that action at this time.