This file contains hidden or 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
| # systemd script for starting and stopping GC2 Docker containers. | |
| # The start.sh script stays in the foreground and will exit if a container stops. | |
| # If start.sh exits systemd will run the start.sh again and keep containers running. | |
| # How to install | |
| # Edit and put this content in /etc/systemd/system/gc2.service | |
| # systemctl enable gc2 | |
| # GC2 containers can be started/stopped by these cmds | |
| # service gc2 start |
This file contains hidden or 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
| module.exports = { | |
| backend: "gc2", | |
| gc2: { | |
| host: "http://cowi.mapcentia.com" | |
| }, | |
| print: { | |
| templates: { | |
| "print": { | |
| A4: { | |
| l: { |
This file contains hidden or 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
| <?php | |
| ini_set("display_errors", "On"); | |
| header("Content-type: text/plain"); | |
| require_once('/var/www/geocloud2/app/libs/vendor/autoload.php'); | |
| use Postmark\PostmarkClient; | |
| use Postmark\Models\PostmarkException; | |
| try { | |
| $client = new PostmarkClient("<my token>"); |
This file contains hidden or 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
| sudo su | |
| apt-get update | |
| apt-get install ppp usb-modeswitch wvdial | |
| # Sæt modemet i usb porten | |
| lsusb | |
| # Du skal se: | |
| # 12d1:14fe Huawei Technologies Co., Ltd. | |
| # 14fe betyder at den er i storing mode, dvs. at den fungerer som en usb memory-stick |
This file contains hidden or 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
| <grid name="25832"> | |
| <metadata> | |
| <title>Dansk UMT</title> | |
| </metadata> | |
| <extent>120000 5900000 1000000 6500000</extent> | |
| <srs>EPSG:25832</srs> | |
| <srsalias>EPSG:25832</srsalias> | |
| <units>m</units> | |
| <size>256 256</size> | |
| <resolutions>1638.4 819.2 409.6 204.8 102.4 51.2 25.6 12.8 6.4 3.2 1.6 0.8 0.4 0.2 0.1</resolutions> |
This file contains hidden or 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
| import sys, re, urllib, urllib2 | |
| args =sys.argv | |
| filesource = args[1] | |
| apikey = args[2] | |
| list = []; | |
| networks = {}; | |
| try: | |
| f = open('count','r+') | |
| except: | |
| w = open('count','w') |
This file contains hidden or 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
| #!/bin/bash | |
| #Install build tools and dependencies | |
| apt-get -y update | |
| apt-get -y install cmake libusb-1.0-0-dev make gcc g++ libbluetooth-dev libncurses5-dev libnl-dev \ | |
| pkg-config libpcap-dev python-numpy python-pyside python-qt4 | |
| #Get and build libbtbb | |
| cd ~ | |
| wget https://github.com/greatscottgadgets/libbtbb/archive/2015-10-R1.tar.gz -O libbtbb-2015-10-R1.tar.gz |
This file contains hidden or 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
| Moved to https://github.com/mapcentia/geocloud2/wiki/Install-GC2 |
This file contains hidden or 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
| { | |
| "settings": { | |
| "number_of_shards": 5, | |
| "number_of_replicas": 0, | |
| "analysis": { | |
| "analyzer": { | |
| "auto_complete_search_analyzer": { | |
| "type": "custom", | |
| "tokenizer": "whitespace", | |
| "filter": ["lowercase"] |
This file contains hidden or 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
| # Start med at installere Docker | |
| sudo wget -qO- https://get.docker.com/ | sh | |
| # Stop den Elasticsearch, som kører på Vm'et | |
| sudo service elasticsearch stop | |
| # Kør Docker containeren (det tager lige nogle sekunder før alle services er oppe) | |
| sudo docker run -it --rm -p 9200:9200 -p 5601:5601 -v /var/log:/logs gc2logstash | |
| # Kald nogle sider i GC2 og tjek om loggen bliver indekseret. |