ogr2ogr -f ElasticSearch \
-lco NOT_ANALYZED_FIELDS={ALL} \
http://elastic:changeme@localhost:9200 \
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
| { | |
| "$schema": "https://vega.github.io/schema/vega/v5.json", | |
| "title": "Timezones (Standard time only!)" | |
| "description": "This does not account for Daylight Savings time.", | |
| "autosize": "pad", | |
| "signals": [ | |
| {"name": "centerX", "init": "100/2"}, | |
| {"name": "centerY", "init": "100/2"}, | |
| {"name": "radiusRef", "init": "min(100,100)*0.8"}, | |
| {"name": "sizeFactor", "init": "radiusRef/400"}, |
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
| { | |
| "$schema": "https://vega.github.io/schema/vega/v5.json", | |
| "width": 500, | |
| "padding": 5, | |
| "signals": [ | |
| { | |
| "name": "address_input", | |
| "value": "", | |
| "bind": { | |
| "placeholder": "Search for an address", |
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
| `jq -c ' .[] | { index: { _index: "<my-index>"} }, .' < ./<my-file>.json > my-file-bulk.ndjson` |
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
| var gbfs2geojson = require("gbfs2geojson-js"); | |
| var fs = require("fs"); | |
| var autoDiscoveryUrl = | |
| "https://ckan0.cf.opendata.inter.prod-toronto.ca/dataset/2b44db0d-eea9-442d-b038-79335368ad5a/resource/142dfb32-d81b-474b-811a-dfc47560ac26/download/bike-share-json.json"; | |
| var data; | |
| gbfs2geojson.getAllData(autoDiscoveryUrl, data, (data, err) => { | |
| if (err) { |
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
| GET _search | |
| { | |
| "query": { | |
| "match_all": {} | |
| } | |
| } | |
| GET openstreetmap-2021.03.10/_mapping | |
| GET openstreetmap-ways/_mapping |
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
| OSMID [n|r|w][0-9]+ | |
| NODES (%{OSMID},?)+ | |
| MEMBERS (%{OSMID}@(\S+)?,?)+ |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Display a map</title> | |
| <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> | |
| <script src="https://api.mapbox.com/mapbox-gl-js/v1.7.0/mapbox-gl.js"></script> | |
| <link href="https://api.mapbox.com/mapbox-gl-js/v1.7.0/mapbox-gl.css" rel="stylesheet" /> | |
| <style> | |
| body { |
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
| jq -Rs @base64 MYFILENAME | jq "{ data: . }" > myobject.json |
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
| const faker = require('faker'); | |
| const moment = require('moment'); | |
| const fs = require('fs'); | |
| const stream = fs.createWriteStream('./access.log', { | |
| flags: 'a' | |
| }); | |
| function writeToStream(n) { | |
| for (; n < 1000000; n++) { |
NewerOlder