Skip to content

Instantly share code, notes, and snippets.

View fbouliane's full-sized avatar

Félix Bouliane fbouliane

View GitHub Profile
@fbouliane
fbouliane / connect.py
Last active May 19, 2020 16:38
sqlalchemy programmatically
from alembic.runtime.environment import EnvironmentContext
from alembic.script import ScriptDirectory
from sqlalchemy import create_engine
connectable = create_engine("postgresql+pg8000://some_url".format(connect_args={'ssl_context': True})
alembic_script = ScriptDirectory.from_config(alembic_cfg)
alembic_env = EnvironmentContext(alembic_cfg, alembic_script)
@fbouliane
fbouliane / update-route53.sh
Created August 24, 2015 15:01 — forked from phybros/update-route53.sh
BASH Script to keep Route53 updated with your current external IP address
#!/bin/bash
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="enter zone id here"
# The CNAME you want to update e.g. hello.example.com
RECORDSET="enter cname here"
# More advanced options below
# The Time-To-Live of this recordset