I hereby claim:
- I am carinadigital on github.
- I am carinadigtial (https://keybase.io/carinadigtial) on keybase.
- I have a public key ASAO9691Xcd7knpKsQ-1MaVPP0M1vVepRz3rVcm9tfOtJwo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
name=fooAlert-$RANDOM | |
url='http://localhost:9093/api/v1/alerts' | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
generate_post_data() { | |
cat <<EOF | |
[{ |
class myclass: | |
myclassvar = '' | |
def myfunc(self, mytext): | |
self.myclassvar = mytext | |
def main(): | |
work = myclass() |
#!/bin/bash | |
set -euxo pipefail | |
# 0 - Processed record. No more to process | |
# 20 - Processed record. More to process | |
# Other - Unspecified error | |
# Process one record |
#!/bin/bash | |
# Dump prod data | |
docker run --rm -ti -v /root/data:/tmp taskrabbit/elasticsearch-dump --input=http://$1:9200/persons --output /tmp/persons_m.json --type=mapping | |
docker run --rm -ti -v /root/data:/tmp taskrabbit/elasticsearch-dump --input=http://$1:9200/persons --output /tmp/persons_a.json --type=analyzer | |
docker run --rm -ti -v /root/data:/tmp taskrabbit/elasticsearch-dump --input=http://$1:9200/persons --output /tmp/persons_d.json --type=data | |
docker run --rm -ti -v /root/data:/tmp taskrabbit/elasticsearch-dump --input=http://$1:9200/users --output /tmp/users_m.json --type=mapping | |
docker run --rm -ti -v /root/data:/tmp taskrabbit/elasticsearch-dump --input=http://$1:9200/users --output /tmp/users_a.json --type=analyzer | |
docker run --rm -ti -v /root/data:/tmp taskrabbit/elasticsearch-dump --input=http://$1:9200/users --output /tmp/users_d.json --type=data |
I hereby claim:
To claim this, I am signing this object:
Normal flow: Create file, delete file, expire file
Revisions | Create | Delete | Expire non-current at 30 days | Expire empty delete marker |
---|---|---|---|---|
1 | create marker | delete marker | delete marker | |
2 | create marker |
import pyproj | |
""" This function will take Ordnance Survey (British National Grid) positional data and | |
return latitude, longitude in wgs84 used by google maps and others. """ | |
def bng_to_wgs84(Easting, Northing): | |
# Define two projections, one for the British National Grid and one for WGS84 (Lat/Lon) | |
# You can use the full PROJ4 definition or the EPSG identifier (PROJ4 uses a file that matches the two) | |
#bng = Proj("+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs towgs84='446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894'") |