I hereby claim:
- I am thulasi-ram on github.
- I am 0x12c (https://keybase.io/0x12c) on keybase.
- I have a public key whose fingerprint is E7F2 CDAE BEE2 7D90 E899 3E9B 0F23 8D15 ADD0 A7BF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| { | |
| "$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
| "basics": | |
| { | |
| "name": "Damodharan Thulasiram", | |
| "label": "Staff Software Engineer", | |
| "image": "", | |
| "email": "[email protected]", | |
| "phone": "(+91) 9840561688", | |
| "url": "https://ahiravan.dev", |
| """ | |
| Inspiration: https://gist.github.com/nikolaik/85e19b89223686b9ab560822fb63bc01 | |
| Quickstart: | |
| 1. Setup a virtualenv | |
| 2. pip install requests pydantic rich click python-dotenv | |
| 3. python sentry_setup_v2.py | |
| """ | |
| import json |
| """ | |
| Courtesy of https://github.com/loftylabs/django-hardcopy | |
| """ | |
| import platform | |
| import subprocess | |
| from pathlib import Path | |
| from tempfile import NamedTemporaryFile | |
| from reseller import app |
| """ | |
| A poor man's implementation of celery like async task manager. | |
| Hacked in under 2 hours. | |
| Author: Thulasi | |
| Usage: | |
| app = Flask(__name__) | |
| tasker = Tasker(app, rabbitmq_params={'hostname': 'amqp://guest:guest@localhost:5672/reseller'}) | |
| or |
| # -*- coding: utf-8 -*- | |
| from gevent import monkey | |
| monkey.patch_all() | |
| import logging | |
| import time | |
| from amqp import PreconditionFailed |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| gevent expandable queue consumer | |
| """ | |
| import sys | |
| from gevent import monkey | |
| monkey.patch_all() |
| import logging | |
| from config.utils.json_encoders import ObjectEncoder | |
| def get(log_root=None, formatter=None, handler=None): | |
| if not formatter: | |
| formatter = 'logstash_fmtr' | |
| if not handler: |
| # -*- coding: utf-8 -*- | |
| import re | |
| """ | |
| Exemplo didático de implementação de programação orientada | |
| a aspectos com Python. | |
| Sem otimizações que seriam prematuras | |
| Caso deseje um uso real programação orientada a aspectos com python, | |
| existem alguns projetos bem mantidos em repositórios apropriados |
| """ | |
| TO OVERRIDE DJANGO's CursorWrapper which causes to use dead connections. | |
| Use case: Deployed Pgbouncer and if its terminating your connections and django thinks it's still alive. | |
| On attempt to access db django's psycopg driver raises DatabaseError. | |
| WARNING: Have tested only on postgres. Didn't test the effect of this on rollbacks and edge cases. | |
| """ | |
| from django.db.backends.utils import CursorWrapper |