Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screent_ts #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions check-yamal_sh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# Code by Javier E. Perez P. <[email protected]>
# 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
Binary file added docs/faq-ec2-en.pdf
Binary file not shown.
Binary file added docs/faq-s3-en.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions extensiones-unicas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Empty file modified hora.sh
100644 → 100755
Empty file.
18 changes: 18 additions & 0 deletions screen_ts_ocr_img2txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions yaml2json.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))'