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 pytest | |
import datetime | |
import time | |
def log(s): | |
print("{}: {}".format(datetime.datetime.now(), s)) | |
def vm_fixture(f): | |
o = f() |
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
wget https://upload.wikimedia.org/wikipedia/commons/a/ad/World_map_blank_with_blue_sea.svg | |
convert World_map_blank_with_blue_sea.svg -alpha activate -background black -monitor -density 1200 -resize 1920x1080 world.jpg | |
COLUMNS=636 LINES=124 jp2a --chars="linux " --term-fit world.jpg> world.txt | |
convert -background black -fill white -font FreeMono -density 1200 -size 4848x2196 -gravity NorthWest label:@./world.txt -pointsize 9 -monitor world_ascii.jpg | |
echo "world_ascii.jpg generated, ready to use!" |
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 | |
function restore { | |
stty echo | |
kill $CATPID | |
} | |
trap restore EXIT | |
stty -echo | |
cat /dev/ttyACM0 & |