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/sh | |
# usage | |
# datt PIECE_OF_CONTAINER_NAME | |
# | |
# example | |
# $ datt app1 | |
# $ datt postg psql -U myuser mydatabase | |
# | |
# This is useful for using pdb. |
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
#!/usr/local/bin/python3 | |
import sys | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('text', type=str, default=sys.stdin, nargs='?') | |
grp = parser.add_mutually_exclusive_group(required=True) | |
grp.add_argument('--decode', '-d', action='store_true', default=True) | |
grp.add_argument('--encode', '-e', action='store_true', default=False) |
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
MODECMD='/mnt/c/Windows/System32/mode.com' | |
COMPORT1=$(${MODECMD}|grep -o 'COM[0-9]*') | |
COMPORT2="" | |
while [ "$COMPORT2" = "" ];do | |
sleep 0.5 | |
printf "." | |
COMPORT2=$(${MODECMD}|grep -v '${COMPORT1}'|grep -o 'COM[0-9]*') | |
done | |
PORTNUM=$(echo $COMPORT2|sed -e 's/COM//') | |
avrdude -c avr109 -p atmega32u4 -P /dev/ttyS${PORTNUM} -U flash:w:$* |
OlderNewer