Skip to content

Instantly share code, notes, and snippets.

View gerardev's full-sized avatar

Gerardo López gerardev

View GitHub Profile
@gerardev
gerardev / database.py
Created November 15, 2019 21:41
Connect to AWS Document DB using SSH Tunnel in python
from sshtunnel import SSHTunnelForwarder
from pymongo import MongoClient
ssh_tunnel_host = 'our-ec2-hostname.compute-1.amazonaws.com'
ssh_tunnel_port = 22
ssh_tunnel_user = 'ubuntu'
ssh_tunnel_pkey = 'ec2-hostname.pem'
db_user = 'database-user'
db_pass = 'database-pass'
@gerardev
gerardev / lider.json
Last active September 11, 2022 23:07
Líder_geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.