Skip to content

Instantly share code, notes, and snippets.

View samtux's full-sized avatar

Samuel Mesa samtux

View GitHub Profile
@samtux
samtux / gist:8920290
Created February 10, 2014 17:21
Monteverdi 1.8.0 Archlinux
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Argyros Argyridis <arargyridis@gmail.com>
# Contributor: Samuel Fernando Mesa Giraldo <samuelmesa@linuxmail.org>
pkgname=monteverdi
pkgver=1.18
@samtux
samtux / PKGBUILD qgis v2.2.0
Last active August 29, 2015 13:56
PKGBUILD Qgis v2.2.0
# Maintainer: Lantald < lantald at gmx.com >
# Contributor: SaultDon <sault.don gmail>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
# Contributor: Eric Forgeot < http://esclinux.tk >
# Contributor: Samuel Fernando Mesa Giraldo < samuelmesa at linuxmail.org >
pkgname=qgis
pkgver=2.2.0
@samtux
samtux / Mapserver Cluster WFS
Created May 22, 2014 19:39
Mapserver Cluster WFS
MAP
FONTSET "fonts.txt"
EXTENT -180 -90 180 90
IMAGETYPE "png"
NAME "Aglomerado"
SIZE 800 600
STATUS ON
DEBUG TRUE
#CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_error.txt"
UNITS DD
@samtux
samtux / ideca_wfs.xml
Created May 29, 2014 01:37
IDECA WFS XML
<wfs:WFS_Capabilities xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:Mapa_Referencia="http://procm19:8399/arcgis/services/Mapa_Referencia/Mapa_Referencia/MapServer/WFSServer" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/gml.xsd http://www.opengis.net/ogc http://schemas.opengis.net/filter/1.1.0/filter.xsd http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsAll.xsd http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
<ows:ServiceIdentification>
<ows:Title>Mapa_Referencia_Mapa_Referencia</ows:Title>
<ows:Abstract />
<ows:Keywords>
<ows:Keyword />
</ows:Keywords>
<ows:ServiceType>WFS</ows:ServiceType>
<ows:ServiceTypeVersion>1.1.0</ows:ServiceTypeVersion>
<ows:Fees />
@samtux
samtux / saga212_warnings
Created May 30, 2014 19:38
Error SAGA GIS v2.1.2 with autoreconf -i
src/modules/grid/grid_calculus/Makefile.am:15: warning: source file './../grid_filter/geodesic_morph_rec/errfunc.c' is in a subdirectory,
src/modules/grid/grid_calculus/Makefile.am:15: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
@samtux
samtux / pgmoder
Created July 23, 2014 19:43
Pgmodeler 0.8-alpha Arch Linux
# Maintainer: Roman Titov <titovroman@gmail.com>
pkgname=pgmodeler
pkgver=0.8.0
pkgrel=1
pkgdesc="PostgreSQL Database Modeler: an open source CASE tool for modeling PostgreSQL databases"
url="http://www.pgmodeler.com.br/"
license=('GPL3')
arch=('i686' 'x86_64')
depends=('qt5-base' 'qt5-svg' 'libxml2' 'libsm' 'libpqxx')
makedepends=('qt5-tools')
@samtux
samtux / gist:d6b426f52575ccc58e35
Created July 25, 2014 18:16
ArchLinux: OpenJump-bin
# Maintainer: Bogusław Ciastek sq5tb[at]tlen.pl
_progname="OpenJUMP"
pkgname=openjump-bin
pkgver=1.7.1
_pkgverf="${pkgver}-r4004-PLUS"
pkgrel=1
pkgdesc="Geographic Information System (GIS) written in the Java (binary version)"
arch=(any)
url="http://www.openjump.org/"
@samtux
samtux / PKGBUILD
Created September 21, 2014 02:03
MegaSync Arch Linux
# Maintainer: Alfonso Saavedra "Son Link" <sonlink.dourden@gmail.com>
pkgname=megasync
pkgver=14.04
pkgrel=6
pkgdesc="Sync your files to your Mega account. Official app"
arch=('i686' 'x86_64')
url="http://mega.co.nz"
license=('custom:The Clarified Artistic License')
conflicts=('megatools')
depends=('openssl' 'c-ares' 'libgcrypt' 'crypto++' 'qt4' 'libpng' 'qtchooser')
@samtux
samtux / gist:29c8ee3bf36e12420348
Last active August 29, 2015 14:07
Django Tastypie Geojson Serializer
class GeoJsonSerializer(Serializer):
def to_geojson(self, data, options=None):
"""
Given some Python data, produces GeoJSON output.
"""
def _build_feature(obj):
f = {
"type": "Feature",
"properties": {},
"geometry": {}