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 | |
# | |
# createvm.sh | |
# | |
# ver 1.0 | |
# | |
# Jose Gomez Castaño jgcasta@gmail.com | |
# | |
# Create a Virtual Box Machine in the createPath directory with the name given in name variable. |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 | |
''' | |
GEt TLE orbital elements for a Satellite | |
@author Jose Gomez Castaño jgcasta@gmail.com | |
@version 1.0.0 | |
@precondition username and password to login into www.space-track.org website is needed |
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 | |
#Delete Oracle table since 1 natural year | |
# | |
ANO=$(date +%Y) | |
ANTERIOR=$[ANO-1] | |
FBORRADO=$(date +%d-%m-$ANTERIOR) | |
MES=$(date +%m) | |
MESANTERIOR=$[MES-1] |
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
Install an external dependency into the local repository | |
$ mvn install:install-file -Dfile=<path-to-file> -DgroupId=Id=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> | |
Generate a package | |
$ mvn package | |
Install into the local repository |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" | |
xmlns:p="http://www.springframework.org/schema/p" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"> | |
<bean | |
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
<property name="location"> |