I hereby claim:
- I am vlaskinvlad on github.
- I am vlaskinvlad (https://keybase.io/vlaskinvlad) on keybase.
- I have a public key ASCLG2BRhg7GdHcr47G8A6wVbLvwkyb6Iz2Xk98Ttrr7Cgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
API_KEY="<SET HERE YOUR GOOGLE API KEY>" | |
def get_address(_r): | |
return "%s %s, %s, %s %s" % (_r['street'], _r['house_num'], _r['city'], _r['plz'], _r['country']) | |
def get_google_coords(adress): | |
url = 'https://maps.googleapis.com/maps/api/geocode/json' |
# This are the teps taken here: | |
# https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-linux-capture-image?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json | |
export RESOURCE=Locarta-Prod | |
export NODE=4tb.private.locarta.co | |
# Go to the ARM mode | |
azure config mode arm | |
#Listing the disks on the node |
#!/bin/bash | |
export ANSIBLE_HOST_KEY_CHECKING=False | |
export PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH | |
if [ ! -d "venv" ]; then | |
virtualenv venv | |
fi | |
. venv/bin/activate | |
export PIP_DOWNLOAD_CACHE=/tmp/$JOB_NAME | |
pip install -r req.txt |
Remove <none> images: | |
sudo docker images -q --filter "dangling=true" | xargs sudo docker rmi | |
Remove all containers: | |
sudo docker rm $(sudo docker ps -aq) | |
Remove all exited containers: |
from geohash import encode | |
print encode(latitude=lat, longitude=lon, precision=geohash_precision) |
# Connect to docker | |
docker exec -it <docker image id> /bin/bash | |
# revoke cert | |
easyrsa revoke <client_name> | |
#generate crl file | |
easyrsa gen-crl |
set nocompatible " be iMproved, required | |
filetype off " required | |
"===================================================== | |
" Vundle settings | |
"===================================================== | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() |
./es_template.sh -h es.jupiter.pointwise.co -n visit_template -t visit_template |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |