Skip to content

Instantly share code, notes, and snippets.

Samuel Mesa samtux

Block or report user

Report or block samtux

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@samtux
samtux / guion.bat
Created Sep 25, 2019
Script para convertir una tabla de XLSX a GeoPackage
View guion.bat
@echo off
REM "Script para convertir una tabla de XLSX a GeoPackage"
REM "Samuel Mesa"
REM set GDALBIN_FOLDER=C:\tmp\bin\
set XLSX_FOLDER=C:\tmp\xlsx\
REM set PATH=%PATH%;%GDALBIN_FOLDER%
REM set PROJ_LIB=%GDALBIN_FOLDER%proj6\share\
@samtux
samtux / guion.sh
Created Sep 25, 2019
Convertir una tabla XLSX de puntos a rutas
View guion.sh
#!/usr/bin/bash
# Fecha: 25 de septiembre de 2019
# Descripcion: Convertir una tabla XLSX de puntos a rutas
for filename in *.xlsx;
do
archivo="${filename%.*}"
echo "Construyendo los puntos a partir de la hoja de EXCEL $archivo"
ogr2ogr -f "GPKG" -geomfield geom -dialect sqlite -sql "SELECT *, GeomFromText('POINT Z(' || CAST( x AS integer) || ' ' || CAST( y AS integer) || ' ' || CAST (altitud AS integer) || ')', 3116 ) AS geom FROM Sheet1" --config OGR_XLSX_HEADERS FORCE $archivo.gpkg $archivo.xlsx
@samtux
samtux / metadatos_docx.py
Created Jul 15, 2019
Extraer el numero de paginas de DOCX
View metadatos_docx.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 12:26:25 2019
@author: samtux
"""
import zipfile
import xml.etree.ElementTree as ET
@samtux
samtux / PKGBUILD
Created Jul 14, 2019
Freeoffice 966
View PKGBUILD
# Maintainer: Muflone http://www.muflone.com/contacts/english/
pkgname=freeoffice
pkgver=966
pkgrel=1
pkgdesc="A complete, reliable, lightning-fast and Microsoft Office-compatible office suite with a word processor, spreadsheet, and presentation graphics software."
arch=('x86_64')
url="http://www.freeoffice.com/"
license=('custom')
depends=('libxrandr' 'libgl' 'xdg-utils' 'gtk-update-icon-cache'
@samtux
samtux / PKGBUILD
Last active Jul 8, 2019
PKGBUILD insight-toolkit with NeuralNetworks module and Python 3
View PKGBUILD
# Maintainer: Chris <christopher.r.mullins g-mail>
# Contributor: geosam <samuelmesa@linuxmail.org>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: joel schaerer <joel.schaerer@laposte.net>
pkgname=insight-toolkit
pkgver=5.0.0
pkgrel=12
pkgdesc='Cross-platform system that provides developers with an extensive suite of software tools for image analysis'
View php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
View exception--2019-01-07--22-53--50e7eddc26.html
<!DOCTYPE html><!-- "' --></textarea></script></style></pre></xmp></a></iframe></noembed></noframes></noscript></option></select></template></title></table>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<meta name="generator" content="Tracy by Nette Framework">
<title>Fatal Error: Cannot use string offset as an array</title>
<style type="text/css" class="tracy-debug">
View olStyleParser.js
var GeoStylerOpenlayersParser=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=225)}([function(t,e,i){"use strict";var n={ASSUME_TOUCH:!1,DEFAULT_MAX_ZOOM:42,DE
@samtux
samtux / PKGBUILD
Created Nov 14, 2018
PKGBUILD draftsight 2018SP3-1
View PKGBUILD
# Maintainer: Bernhard Landauer <oberon@manjaro.org>
# Contributor: Justin R. St-Amant <jstamant24 at gmail dot com>
pkgname=draftsight
pkgver=2018SP3
pkgrel=1
pkgdesc="Freeware CAD software for DWG/DXF files."
arch=('x86_64')
url="http://www.3ds.com/products/$pkgname/"
license=('custom')
@samtux
samtux / estacion.sld
Last active Nov 11, 2018
Estaciones SLD
View estacion.sld
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" version="1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:se="http://www.opengis.net/se" xmlns:xlink="http://www.w3.org/1999/xlink">
<NamedLayer>
<se:Name>ms:estacion</se:Name>
<UserStyle>
<se:Name>ms:estacion</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Favorable</se:Name>
<se:Description>
You can’t perform that action at this time.