This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SHP import to PostGIS | |
shp2pgsql /Users/mar759/Downloads/bdline_essh_gb/Data/GB/european_region_region.shp scotland.european_region_region > /tmp/uk.sql | |
# SOL script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// initialise plugins | |
$(function(){ | |
var autocompleteUrl = 'http://species-ws.als.scot/auto'; | |
// autocomplete on navbar search input | |
$("input.general-search").autocomplete(autocompleteUrl, { | |
extraParams: {limit: 100}, | |
dataType: 'json', | |
parse: function(data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Leaflet Quick Start Guide Example</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="http://leafletjs.com/dist/leaflet.css" /> | |
</head> | |
<body> | |
<div id="map" style=" height: 800px"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>LeafletJS and ALA occurrence layer</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="http://leafletjs.com/dist/leaflet.css" /> | |
</head> | |
<body> | |
<div id="map" style="height: 800px"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Embed map image example</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="expertDistroDiv"> | |
<img src=""/> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: set debian variables | |
set_fact: | |
tomcat: tomcat7 | |
tomcat_user: tomcat7 | |
tomcat_conf: /etc/default/tomcat7 | |
apache: apache2 | |
mysql_service: mysql | |
cassandra_yaml: /etc/cassandra/cassandra.yaml | |
cassandra_user: cassandra | |
tomcat_webapps: /var/lib/tomcat7/webapps/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: set debian variables | |
set_fact: | |
tomcat: tomcat7 | |
tomcat_user: tomcat7 | |
tomcat_conf: /etc/default/tomcat7 | |
apache: apache2 | |
mysql_service: mysql | |
cassandra_yaml: /etc/cassandra/cassandra.yaml | |
cassandra_user: cassandra | |
tomcat_webapps: /var/lib/tomcat7/webapps/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>ALA Occurrence Records Map Example</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An inventory for the deployment of the ALA demo for the UK. | |
[ala-demo] | |
ec2-54-93-32-22.eu-central-1.compute.amazonaws.com | |
[ala-demo:vars] | |
is_vagrant=false | |
local_repo_dir = ~/.ala | |
data_dir=/data | |
use_cdn=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mar759@calamari-be:~/dev/ala-install/ansible$ date | |
Mon 15 Dec 2014 14:53:38 AEDT | |
mar759@calamari-be:~/dev/ala-install/ansible$ ansible-playbook --private-key ~/.ssh/uk-demo-frankfurt.pem -u ubuntu -s ala-demo.yml -i inventories/demo-ec2 | |
PLAY [ala-demo] *************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [ec2-54-93-32-22.eu-central-1.compute.amazonaws.com] | |
TASK: [common | set debian variables] ***************************************** |
OlderNewer