Skip to content

Instantly share code, notes, and snippets.

View rameshg87's full-sized avatar

Ramakrishnan G rameshg87

  • Bangalore, India
View GitHub Profile
$ 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"...
#!/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
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.
"""