Skip to content

Instantly share code, notes, and snippets.

@maheshgattani
maheshgattani / sdlc_helper.py
Last active November 16, 2017 22:34
SDLC helper for Jira and TFS users.
import sys
import subprocess
import getpass
from optparse import OptionParser
import requests
import json
'''
This script is useful for maintaining an easy SDLC process.
Using this script, the build master and quickly find all the Jira tickets
@maheshgattani
maheshgattani / receiver_with_backoff_rabbitpy.py
Last active May 3, 2023 13:40
RabbitMQ back off and retry
#!/usr/bin/env python
import rabbitpy
import time
import random
#
# This script uses the DLX and TTL concepts in RabbitMQ to create
# a back off and retry logic for queue consumer.
#
# This script nack's every message it gets without requeue and
@maheshgattani
maheshgattani / fire_and_forget.php
Last active January 11, 2022 19:26
Fire and forget requests in PHP using fsockopen
<?php
/*
This script can be used by a server to make fire and forget requests to any given url.
This script assumes you have access to $_COOKIE and $_SERVER variable passed along via the server.
GET and POST requests are supported.
POST can have an attached file to it.
Author: Mahesh Gattani (maheshgattani@gmail.com)