<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
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
#!/usr/bin/python | |
from PIL import Image | |
import sys | |
import pyocr | |
import pyocr.builders | |
def ocrimage(imagename, threshold = 127, lang = 'spa', tlayout=3): |
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
### Keybase proof | |
I hereby claim: | |
* I am vehrka on github. | |
* I am vehrka (https://keybase.io/vehrka) on keybase. | |
* I have a public key whose fingerprint is 8A26 D429 AF4A 6DED 6EB8 0649 D3F8 129B 2FE3 8E6B | |
To claim this, I am signing this object: |
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 | |
if [ `id -u` -ne 0 ]; then | |
echo "Please run as root" | |
exit | |
else | |
kernelsv=`ls /boot | grep vmlinuz | cut -d'-' -f2,3` | |
nkernv=0 | |
out='' | |
for kernv in ${kernelsv[@]} |
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/sh | |
STARTPAGE=1 # set to pagenumber of the first page of PDF you wish to convert | |
ENDPAGE=11 # set to pagenumber of the last page of PDF you wish to convert | |
SOURCE=source.pdf # set to the file name of the PDF | |
OUTPUT=destination.txt # set to the final output file | |
RESOLUTION=75 # set to the resolution the scanner used (for B/W and good scans 75 suffice) | |
touch $OUTPUT | |
for i in `seq $STARTPAGE $ENDPAGE`; do |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import psycopg2 | |
from basiclogger import pyLogger | |
#from datetime import datetime | |
from pandas import DataFrame | |
from sqlalchemy import create_engine | |
FILENAME = 'dataframetopostgres.log' |
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
-- Function: makegrid_epsg3857(text, text, text, numeric) | |
-- DROP FUNCTION makegrid_epsg3857(text, text, text, numeric); | |
CREATE OR REPLACE FUNCTION makegrid_epsg3857(schemaname text, boundingbox text, gridtable text, halfwidth numeric) | |
RETURNS text AS | |
$BODY$ | |
DECLARE | |
tbl_cnt int; | |
XMIN numeric; |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import csv | |
from jinja2 import Environment, FileSystemLoader | |
from collections import namedtuple | |
env = Environment(loader=FileSystemLoader(".")) | |
def render_template(template_file, **kwargs): |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# sudo add-apt-repository ppa:mapnik/nightly-2.3 | |
# sudo apt-get update | |
# sudo apt-get install libmapnik libmapnik-dev mapnik-utils python-mapnik | |
# sudo apt-get install mapnik-input-plugin-gdal mapnik-input-plugin-ogr mapnik-input-plugin-postgis mapnik-input-plugin-sqlite mapnik-input-plugin-osm | |
import psycopg2 |
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
server: 'jira.yourserver.com' | |
author: 'workloguser' | |
apiuser: 'apiuser' | |
apipass: 'apipass' |
OlderNewer