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
/** | |
* Return a String date with format dd-MM-yyyy from a XMLGregorianCalendar | |
* | |
* @param cal | |
* @return | |
*/ | |
public String XmlGregorianCalendar2String(XMLGregorianCalendar cal){ | |
String str = ""; | |
SimpleDateFormat format = new SimpleDateFormat("dd-MM-yyyy"); |
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 | |
# Download SRTM2 Tiles for Iberia (http://www2.jpl.nasa.gov/srtm/) | |
# | |
# Jose Gomez Castano jgomez03@pdi.ucm.es | |
wget http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/N35E000.hgt.zip | |
wget http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/N35E001.hgt.zip | |
wget http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/N35E002.hgt.zip | |
wget http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/N35E003.hgt.zip |
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 | |
# | |
# ChangeVBMem.sh | |
# | |
# ver 1.0 | |
# | |
# Jose Gomez Castaño jgcasta@gmail.com | |
# | |
# Change memory size for a running virtual machine. The system will be stopped and restarted |
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 | |
ogr2ogr -a_srs EPSG:4326 out.shp | |
directories=$(find . -type d) | |
for directory in $directories | |
do | |
files=$(find $directory -name '*.shp') |
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 | |
# ------------------------------------------------------------------------ | |
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You under the Apache License, Version 2.0 | |
# (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.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
#!/usr/bin/env python | |
# -*- coding: utf-8 | |
""" | |
Get extent from SHP | |
version 1.0 | |
autor José Gómez Castaño | |
email jgcasta@gmail.com |
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 | |
""" | |
Plot histogram | |
version 1.0 | |
autor José Gómez Castaño | |
email jgcasta@gmail.com |
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 | |
""" | |
Traza la Analema para un Madrid | |
@precondition: se necesita tener el paquete Ephem | |
""" | |
import ephem |
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 | |
# Delete 1 year before today | |
# | |
# 20/02/2013 v1.0 | |
# | |
# | |
ANO=$(date +%Y) |
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 | |
# Add and update EPEL and RPMFusion repositories in a CentOS 5 | |
# jgcasta at gmail dot com | |
wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt | |
rpm -import RPM-GPG-KEY.dag.txt | |
rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
rpm -ivh http://mirror.chpc.utah.edu/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm |
OlderNewer