diff --git a/check-yamal_sh.sh b/check-yamal_sh.sh new file mode 100755 index 0000000..3a27852 --- /dev/null +++ b/check-yamal_sh.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Code by Javier E. Perez P. +# Last update: 2017-04-20 +if [ $# -lt 1 ]; then + echo "Must specify at least one YAML file as argument" +else + python -c 'import yaml, sys; print yaml.load(sys.stdin)' < $1 + if [ $? -eq 0 ]; then + echo "Well formatted file" + else + echo "BAD formatted file" + fi +fi diff --git a/docs/faq-ec2-en.pdf b/docs/faq-ec2-en.pdf new file mode 100644 index 0000000..e08d18a Binary files /dev/null and b/docs/faq-ec2-en.pdf differ diff --git a/docs/faq-s3-en.pdf b/docs/faq-s3-en.pdf new file mode 100644 index 0000000..3eebae1 Binary files /dev/null and b/docs/faq-s3-en.pdf differ diff --git a/extensiones-unicas.sh b/extensiones-unicas.sh index eb9ba17..f566dae 100755 --- a/extensiones-unicas.sh +++ b/extensiones-unicas.sh @@ -4,3 +4,5 @@ find . -type f |egrep '^./.*\.' |sed -e "s/\(^.*\.\)\(.*$\)/\2/" |sort |uniq # un simulacro para hacer lo mismo (pero no hace lo mismo) # -------------------------------------------------------- # find . -type f |awk -F'.' '{print $NF}' |sort |uniq + +# new comment diff --git a/hora.sh b/hora.sh old mode 100644 new mode 100755 diff --git a/screen_ts_ocr_img2txt b/screen_ts_ocr_img2txt new file mode 100755 index 0000000..b405bbc --- /dev/null +++ b/screen_ts_ocr_img2txt @@ -0,0 +1,18 @@ +#!/bin/bash +# taken from: https://askubuntu.com/questions/280475/how-can-instantaneously-extract-text-from-a-screen-area-using-ocr-tools +# Dependencies: tesseract-ocr imagemagick scrot xsel + +select tesseract_lang in eng rus equ ;do break;done +# quick language menu, add more if you need other languages. + +SCR_IMG=`mktemp` +trap "rm $SCR_IMG*" EXIT + +scrot -s $SCR_IMG.png -q 100 +# increase image quality with option -q from default 75 to 100 + +mogrify -modulate 100,0 -resize 400% $SCR_IMG.png +#should increase detection rate + +tesseract $SCR_IMG.png $SCR_IMG &> /dev/null +cat $SCR_IMG.txt | xsel -bi diff --git a/yaml2json.sh b/yaml2json.sh new file mode 100755 index 0000000..69b0165 --- /dev/null +++ b/yaml2json.sh @@ -0,0 +1,2 @@ +#!/bin/bash +ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))'