Skip to content

Instantly share code, notes, and snippets.

View pauldx's full-sized avatar

Debashis Paul pauldx

View GitHub Profile
@pauldx
pauldx / README.md
Created June 8, 2020 19:28 — forked from acmiyaguchi/README.md
Databricks Airflow Workflow
@pauldx
pauldx / sqlalchemy_oracle_connection
Created December 18, 2019 06:50 — forked from igortereshchenko/sqlalchemy_oracle_connection
Create connection sqlalchemy oracle
import cx_Oracle
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
oracle_connection_string = 'oracle+cx_oracle://{username}:{password}@{hostname}:{port}/{database}'
engine = create_engine(
oracle_connection_string.format(
username="username",
password="password",
@pauldx
pauldx / gist:7731e6998030562e9ee75d9a64099bed
Created December 18, 2019 06:46 — forked from zzzeek/gist:8479592
cx_oracle vs. SQLAlchemy core, revised
from sqlalchemy.testing.profiling import profiled
from sqlalchemy import create_engine
from sqlalchemy import event
engine = create_engine('oracle://scott:tiger@localhost/xe')
# disregard all output type handling - Python unicodes
# will no longer be supported
@event.listens_for(engine, "connect")
@pauldx
pauldx / Dockerfile
Created December 18, 2019 06:43 — forked from vasartori/Dockerfile
Docker Oracle
FROM debian:stable-slim
COPY instantclient-basic-linux.x64-12.2.0.1.0.zip /
COPY test_pool.py /
RUN apt-get update ; \
apt-get install -y build-essential python3 python3-dev python3-pip \
libaio1 unzip ; \
mkdir -p /opt/oracle ; \
unzip /instantclient-basic-linux.x64-12.2.0.1.0.zip -d /opt/oracle ; \
rm -rf /instantclient-basic-linux.x64-12.2.0.1.0.zip ; \
pip3 install cx_Oracle ; \
import React from "react";
import dateFns from "date-fns";
class Calendar extends React.Component {
state = {
currentMonth: new Date(),
selectedDate: new Date()
};
renderHeader() {
@pauldx
pauldx / docker-compose.yml
Created July 17, 2019 20:11 — forked from ju2wheels/docker-compose.yml
docker-compose reference YAML file with comments
# https://docs.docker.com/compose/yml/
# Each service defined in docker-compose.yml must specify exactly one of
# image or build. Other keys are optional, and are analogous to their
# docker run command-line counterparts.
#
# As with docker run, options specified in the Dockerfile (e.g., CMD,
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to
# specify them again in docker-compose.yml.
#
service_name:
@pauldx
pauldx / graphqlapp.py
Created July 12, 2019 20:33 — forked from sergiolucero/graphqlapp.py
basic flask-graphql app
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import os
import graphene
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField
from flask_graphql import GraphQLView
#################################
app = Flask(__name__)
app.debug = True

Use these files to run a cli/silent install of OBIEE 12c