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
$ GODEBUG=cgocheck=0 go test -coverprofile=/tmp/cover.out -coverpkg=./... | |
2018/01/05 00:58:33 checking testbackend: "py2"... | |
2018/01/05 00:58:33 enabling testbackend: "py2" | |
2018/01/05 00:58:33 checking testbackend: "py2-cffi"... | |
2018/01/05 00:58:33 enabling testbackend: "py2-cffi" | |
2018/01/05 00:58:33 checking testbackend: "py3"... | |
2018/01/05 00:58:33 enabling testbackend: "py3" | |
2018/01/05 00:58:33 checking testbackend: "py3-cffi"... | |
2018/01/05 00:58:33 enabling testbackend: "py3-cffi" | |
2018/01/05 00:58:33 checking testbackend: "pypy2-cffi"... |
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 | |
OUTDIR="$HOME/compressed-photos" | |
mkdir -p $OUTDIR | |
NUMFILES=$(find . -type f -name "*.JPG" | wc -l) | |
INDEX=1 | |
for file in $(find . -type f -name "*.JPG") | |
do | |
echo "Converting file $INDEX/$NUMFILES" | |
convert $file -resize 640x480 $OUTDIR/$file |
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
def _parse_driver_info(node): | |
"""Gets the driver specific Node deployment info. | |
This method validates whether the 'driver_info' property of the | |
supplied node contains the required information for this driver to | |
deploy images to the node. | |
:param node: a single Node. | |
:returns: A dict with the driver_info values. | |
""" |