Skip to content

Instantly share code, notes, and snippets.

@jgcasta
jgcasta / getTLE.py
Last active June 10, 2016 19:31
Get TLE orbital elements for a NORAD ID satellite and date
#!/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
@jgcasta
jgcasta / IberiaSRTM2Tiles.sh
Last active August 29, 2015 13:59
Shell script to Download SRTM2 tiles for Iberia
#!/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
@jgcasta
jgcasta / Createvm.sh
Created June 14, 2014 10:58
Shell script to create a VirtualBox Virtual machine
#!/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.
@jgcasta
jgcasta / ChangeVBMem.sh
Created June 14, 2014 10:59
Change memory size for a running Virtual Box virtual machine
#!/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
@jgcasta
jgcasta / BinaryServerSocket.py
Last active July 31, 2021 19:46
Python socket server to receive binary data and parse the content as integer and string values
#!/usr/bin/python
#-*- coding: utf-8 -*-
'''
Jose Gomez Castano
jgcasta@gmail.com
Socket server to receive binary data and parse the content as integer and string values
Sample packet 030b94 received is decoded as decimal string values
@jgcasta
jgcasta / mergeSHP.sh
Created August 27, 2014 15:51
Shell script to merge a list of SHP files from a set of directories
#!/bin/bash
ogr2ogr -a_srs EPSG:4326 out.shp
directories=$(find . -type d)
for directory in $directories
do
files=$(find $directory -name '*.shp')
@jgcasta
jgcasta / listenerStomppyModified.py
Last active August 29, 2015 14:08
Read message variable from class listener when using Stomp interface to ActiveMQ
#!/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
@jgcasta
jgcasta / license-badges.md
Created June 1, 2016 07:26 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Apache

Apache 2.0 License

License
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

BSD