Skip to content

Instantly share code, notes, and snippets.

View danielquisbert's full-sized avatar
😁
available

DaNi danielquisbert

😁
available
View GitHub Profile
@danielquisbert
danielquisbert / gist:4178940
Created November 30, 2012 21:50 — forked from rolo/gist:1481128
Install Postgres 9.1, PostGIS and create PostGIS template on Ubuntu 11.10 Oneiric Ocelot
#!/bin/bash
#
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box
# http://wildfish.com
# add the ubuntu gis ppa
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
@danielquisbert
danielquisbert / Sublime Text 3 Build 3103 License Key - CRACK
Created January 17, 2017 13:30
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@danielquisbert
danielquisbert / postgis_geojson.php
Last active January 26, 2017 14:08 — forked from bmcbride/postgis_geojson.php
PHP PostGIS to GeoJSON
<?php
/**
* PostGIS to GeoJSON
* Query a PostGIS table or view and return the results in GeoJSON format, suitable for use in OpenLayers, Leaflet, etc.
*
* @param string $geotable The PostGIS layer name *REQUIRED*
* @param string $geomfield The PostGIS geometry field *REQUIRED*
* @param string $srid The SRID of the returned GeoJSON *OPTIONAL (If omitted, EPSG: 4326 will be used)*
* @param string $fields Fields to be returned *OPTIONAL (If omitted, all fields will be returned)* NOTE- Uppercase field names should be wrapped in double quotes
* @param string $parameters SQL WHERE clause parameters *OPTIONAL*
@danielquisbert
danielquisbert / java_home.md
Last active February 20, 2017 20:24
configurando el JAVA_HOME en linux Debian 8

JAVA_HOME for Linux

JAVA_HOME para java openjdk en Linux debian 8

creado dentro de /etc/profile.d/java.sh

Contenido de ejemplo para OpenJDK7:

JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
PATH=$PATH:$JAVA_HOME/bin

export JAVA_HOME

@danielquisbert
danielquisbert / download_ext6.2.0.md
Last active October 18, 2024 22:13
Download extJS gpl 6.2
@danielquisbert
danielquisbert / Comandos_para_CentOS.md
Last active February 9, 2017 14:08
Comandos para CentOS

Activar autocompletado en shell

yum --enablerepo=epel-testing install bash-completion-extras

Enviar alertas de loggeo de root por correo:

**Primero instalar mailx

**editar elarchivo /root/.bashrc y colocar al final del archivo, las siguientes líneas:

@danielquisbert
danielquisbert / installation.md
Created February 14, 2017 13:00 — forked from hallahan/installation.md
SpatialServer Installation Instructions

Preliminary Packages

Make sure you have done sudo apt-get update and sudo apt-get upgrade on your fresh install. This guide is geared toward Ubuntu 14.04 LTS (Trusty Tahr). Most of the guide will work for earlier versions of Ubuntu with some slight changes, but 14.04 is advised.

Enable the root user

sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/
@danielquisbert
danielquisbert / tips_django.md
Last active March 3, 2017 19:17
Importación de archivos CSS, JS, imágenes, etc. desde la ruta static en Django 1.10
@danielquisbert
danielquisbert / tunning_postgres.md
Last active June 12, 2017 19:25
algunos parámetros para realizar el tunning de una DB PG.

Cambiar el nombre para mostrar de las secciones BaseLayer y Overlays del layerswitcher OL2

var map = (OpenLayers.Map ); // your map reference
var layerswitcher = (OpenLayers.Control.LayerSwitcher) // layer swicher control reference
OpenLayers.Lang[OpenLayers.Lang.getCode()]['Base Layer'] = "My base label";
OpenLayers.Lang[OpenLayers.Lang.getCode()]['Overlays'] = "My over label";
// remove current instance of layers switcher from map if attached.
map.removeControl( layerswitcher );
map.addControl( new OpenLayers.Control.LayerSwitcher( { /* options here */ } ) );