Skip to content

Instantly share code, notes, and snippets.

View rukku's full-sized avatar

RK Aranas rukku

  • Philippine Space Agency
  • Quezon City, Philippines
View GitHub Profile
@rukku
rukku / opengeo-suite-install.sh
Created September 4, 2012 09:38 — forked from spara/opengeo-suite-install.sh
OpenGeo Suite installer for Ubuntu with Apache proxy configured
#!/bin/bash
# setup repository
sudo wget -qO- http://apt.opengeo.org/gpg.key | apt-key add -
sudo chmod 655 /etc/apt/sources.list
sudo echo "deb http://apt.opengeo.org/ubuntu lucid main" >> /etc/apt/sources.list
sudo chmod 644 /etc/apt/sources.list
sudo apt-get update
# install opengeo suite
@rukku
rukku / fabfile.py
Created September 28, 2012 07:04 — forked from rburhum/fabfile.py
Fabric script to compile FileGDB
from fabric.api import *
from fabric.contrib.console import confirm
import tempfile
import re
PROJ_VER='4.8.0'
GEOS_VER='3.3.3'
GDAL_VER='1.9.0'
PROJ_PATH='/usr/local/proj/' + PROJ_VER

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

Mabuhay!

Welcome to the Open Source for Geography developers training.

This week we will learn about the basic building blocks for web based gis systems and desktop analysis tools. We will cover topics such as Git/Github, Postgis, GeoServer, Tilemill, GeoNode, QGIS and Inasafe. During the training, there will be tutorials on each of the tools and will work together on a prototype for a web based flood impact analysis tool.

This gist will be both our agenda and minutes document. It contains links to the training materials as well as the description of each activity.

@rukku
rukku / README.rst
Last active December 17, 2015 07:38 — forked from ingenieroariel/README.rst

Mabuhay!

Welcome to the Open Source for Geography developers training.

This week we will learn about the basic building blocks for web based gis systems and desktop analysis tools. We will cover topics such as Git/Github, Postgis, GeoServer, Tilemill, GeoNode, QGIS and Inasafe. During the training, there will be tutorials on each of the tools and will work together on a prototype for a web based flood impact analysis tool.

This gist will be both our agenda and minutes document. It contains links to the training materials as well as the description of each activity.

@rukku
rukku / urls.py
Created May 27, 2013 09:55 — forked from rburhum/urls.py
...
url(r'^v1/tiles/(?P<tile_user>([^/]+))/(?P<tile_layer>([^/]+))/(?P<tile_zoom>(\d+))/(?P<tile_column>(\d+))/(?P<tile_row>(\d+))\.(?P<tile_format>([a-z]+))$', TileManager.as_view(), name='tile_manager'),
...
@rukku
rukku / form.js
Created July 18, 2013 08:19 — forked from dhcole/form.js
$(function(){
var formUrl = '/* ex: https://docs.google.com/a/developmentseed.org/spreadsheet/formResponse?formkey=... */';
// Set up map
var m = mapbox.map('map').addLayer(mapbox.layer().id(' /* mapbox-account.id */ '));
// Set up map ui features with point selector
var ui = mapbox.ui().map(m).auto().pointselector(function(d) {
// Remove all points except the most recent
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {
<div style="width:800px; height:500px" id="map"></div>
<script type='text/javascript'>
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position){
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
});

Here's how to install PostgreSQL and have it run automatically at startup, on an Ubuntu 10.04 virtual machine using Vagrant. This took me a while to figure out:

Add the default lucid32 base box to your vagrant, if you haven't already:

host> vagrant box add lucid32 http://files.vagrantup.com/lucid32.box 

Now make a new lucid32 virtual machine and install postgresql on it: