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
""" | |
Git Log Parser - Version 0.1 | |
Parse and summarize the output of a `git log --name-status`` command. | |
Extract information about commits, authors, and file modifications, | |
and then summarizing this information in tables that show the number of commits, | |
files updated, and lines modified by author and by date. | |
The code uses classes to represent commits and file modifications, | |
and functions to parse the output of the git log command and summarize the data. |
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
## | |
# QGIS python script to update a field with a autoincrement value using an xy order of features. | |
# Created at: March 2018 | |
import operator | |
# Attribute field to update | |
FIELD_TO_AUTOINCREMENT = 'id' | |
START_AT = 1 #0 |
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
== request.txt (with no spaces,returns,etc.) == | |
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" maxFeatures="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"> <wfs:Query typeName="Viticola_Viticola_SIXPAC14_WFS:Recintos_2014" xmlns:Viticola_Viticola_SIXPAC14_WFS="http://idegintranet.xunta.es/arcgis/services/Viticola/Viticola_SIXPAC14_WFS/MapServer/WFSServer"> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> <ogc:And> <ogc:PropertyIsEqualTo> <ogc:PropertyName>provincia</ogc:PropertyName> <ogc:Literal>32</ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>municipio</ogc:PropertyName> <ogc:Literal>039</ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>poligono</ogc:PropertyName> <ogc:Literal>004</ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>parcela</ogc:PropertyName> |
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
# Usage: | |
# python webscrapper_find_text.py | |
# | |
# A useful way to execute this script could be: | |
# | |
# while true ; do | |
# python webscrapper_find_text.py ; | |
# sleep 30; | |
# done |
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 | |
# Very simple script to check web services/pages with request each 'SLEEP_TIME' seconds. | |
# It is useful for health checks of OGC services. | |
# | |
# IMPORTANT: You must configure the RESPONSE_CHARS_NUM_EXPECTED used to compare with the real response. | |
# | |
# It has a infinite loop. | |
# Recomended redirect output to a 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
""" | |
Compile GDAL with ESRI FileGDB and python support. | |
Requirements: python-dev | |
""" | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
import tempfile | |
import re |
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
services: | |
demo: | |
kml: | |
tms: | |
wmts: | |
wms: | |
srs: ['EPSG:900913', 'EPSG:4258'] | |
image_formats: ['image/jpeg', 'image/png'] | |
md: | |
title: PNOA MapProxy |