Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am heffergm on github.
  • I am heffergm (https://keybase.io/heffergm) on keybase.
  • I have a public key ASASk4p-FOTaKzw3WViG3Cevx4o8l3-ZIjHSsqW2T9wCsAo

To claim this, I am signing this object:

#!/usr/bin/env bash
local_data_dir=valhalla_data
mkdir $local_data_dir && pushd $local_data_dir
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/san-francisco_california.osm.pbf
popd
docker run -h valhalla -v ${PWD}/valhalla_data:/data/valhalla valhalla/docker:ppa-1.4.5 valhalla_build_tiles --config /conf/valhalla.json --input_files /data/valhalla/san-francisco_california.osm.pbf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env ruby
require 'pagerduty'
pagerduty = Pagerduty.new('you_service_key_here')
incident = pagerduty.trigger(
"THIS IS A TEST",
incident_key: "this_is_a_test"
)
@heffergm
heffergm / setup.sh
Last active March 11, 2022 12:59
Pelias
#!/usr/bin/env bash
basedir="${HOME}/pelias"
es_version="1.3.4"
es_port="9200"
es_url="https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${es_version}.tar.gz"
export NODE_PATH=${NODE_PATH}:./node_modules
# dependencies
for dep in 'node' 'git' 'wget' 'curl'; do
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{ "type": "Feature", "properties": { "osm_id": 121701668.0, "type": "yes", "name": "Terrey Hills Service Station" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 16834275.971120610833168, -3985956.649571768473834 ], [ 16834280.664458651095629, -3985945.773137636482716 ], [ 16834303.45000834390521, -3985955.606779183261096 ], [ 16834298.747339613735676, -3985966.472009785007685 ], [ 16834275.971120610833168, -3985956.649571768473834 ] ] ] } }
root@prod-dimsr-r06:~# free -m
total used free shared buffers cached
Mem: 1995 929 1065 0 102 329
-/+ buffers/cache: 498 1497
Swap: 1953 0 1953
root@prod-dimsr-r06:~# cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 4
2012-04-30 22:59:02.850 [info] <0.373.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 32MB, max heap: 16MB, pool: riak_kv_js_map) host starting (<0.373.0>)
2012-04-30 22:59:02.884 [info] <0.374.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 32MB, max heap: 16MB, pool: riak_kv_js_map) host starting (<0.374.0>)
2012-04-30 22:59:02.919 [info] <0.375.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 32MB, max heap: 16MB, pool: riak_kv_js_map) host starting (<0.375.0>)
2012-04-30 22:59:02.955 [info] <0.376.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 32MB, max heap: 16MB, pool: riak_kv_js_map) host starting (<0.376.0>)
2012-04-30 22:59:02.991 [info] <0.377.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 32MB, max heap: 16MB, pool: riak_kv_js_map) host starting (<0.377.0>)
2012-04-30 22:59:03.029 [info] <0.378.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 32MB, max heap: 16MB, pool: riak_kv_js_map) host starting (<0.378.0>)
2012-04-30 22:59:03.064 [info] <0.379.0>