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 | |
date >> /home/pi/speedtest/speedtest.log | |
note=`/usr/bin/speedtest -p no` | |
echo "$note" >> /home/pi/speedtest/speedtest.log | |
DATE=$(date) | |
SERVER=$( echo "$note" | grep "Server:" | sed 's/^.*Server://' | xargs ) | |
ISP=$( echo "$note" | grep "ISP:" | sed 's/^.*ISP: //' | xargs ) | |
LATENCY=$( echo "$note" | grep "Latency:" |sed 's/^.*Latency: //' | xargs ) | |
DOWNLOAD=$( echo "$note" | grep "Download:" | sed 's/^.*Download: //' | xargs ) |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGEYctsBEAC3sAbhm3BSKnbhOKIV15VVhY60jWZ+6ohlJ116S3lFy0kK1q90 | |
iVuBSh35JlLPmRB9uaCqQQN/rbCAQqiL907fzIW0/u6HVEnif9j2QcqKrEvJAUOT | |
VlTv0S1w7S/1YUP/09oCpkiifvZdu8cUox0uDLQ8rgIdHm9jokabO8IdgHdp9VHL | |
Fusg0fXedj3Zt4cGf4hByPtdp2qN0wwdhv6wW18tCHvtWUOfeLwojMHwkbaP5OMN | |
9JguywtnavbUnTG4qW1q7vZxdiyJkZmzTiBw3rrJKpIGWcpyb+XmkaoQ8HG9nKQV | |
0BpcQN6aWk37Cj/pWLJwrMGQHaIt1ISJoXlT1AU40H1t+nQeJw9Z8heENiwPzfAT | |
07+539IyppF88NSdnHGPveHHJmhVpmzadquZwnkawLdusv+Bno/grmKvvA93X+Aj | |
UvSat5FH3ewjxIC/kWhpu6/6xWT4c8RKN5TC1984a/cFcGmuCLU0JnrD8IxBpQ8S |
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
from morseToBlink import blinkMorsecode | |
from wordsToMorsecode import textToMorsecode | |
import sys | |
blinkMorsecode(textToMorsecode(sys.argv[1])) |
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 | |
# Change this; if the ticket prefix and id is separated by a dash you will need to include it here | |
TICKET_PREFIX='TICKET-' | |
# Get Git branch; use grep with extended regex to capture the tickets | |
TICKET_IDS_BRANCH=$(git rev-parse --abbrev-ref HEAD | grep -oE "${TICKET_PREFIX}[0-9]+") | |
COMMIT_MESSAGE=$(cat $1) |