Skip to content

Instantly share code, notes, and snippets.

View shadyabhi's full-sized avatar

Abhijeet Rastogi shadyabhi

View GitHub Profile
@shadyabhi
shadyabhi / haproxy.config
Created September 27, 2023 22:12
HAproxy sessions experiment, what does it really mean?
global
stats socket /tmp/haproxy.sock
frontend stats
mode http
bind *:8081
stats enable
stats uri /stats
stats refresh 1s
From d9694aeac3099741353c3cf50c27526591012e28 Mon Sep 17 00:00:00 2001
From: Abhijeet Rastogi <abhijeet.1989@gmail.com>
Date: Sat, 13 May 2023 20:04:45 -0700
Subject: [PATCH] MINOR: ssl: add new sample ssl_c_r_dn
This patch addresses #1514, adds the ability to fetch DN of the root
ca that was in the chain when client certificate was verified during SSL
handshake.
---
doc/configuration.txt | 14 +++++++
@shadyabhi
shadyabhi / 0001-MINOR-ssl-add-new-sample-ssl_c_r_dn.patch
Last active December 18, 2022 06:11
MINOR: ssl: add new sample ssl_c_r_dn
From 7b3263665f624333fc344e7153acd9937be9d740 Mon Sep 17 00:00:00 2001
From: Abhijeet Rastogi <abhijeet.1989@gmail.com>
Date: Sat, 17 Dec 2022 16:10:38 -0800
Subject: [PATCH] MINOR: ssl: add new sample ssl_c_r_dn
This patch addresses #1514, adds the ability to fetch DN of the root
ca that was in the chain when client certificate was verified during SSL
handshake.
---
doc/configuration.txt | 15 ++++++++++
@shadyabhi
shadyabhi / 0001-MINOR-cli-print-parsed-command-when-not-found.patch
Last active November 19, 2022 03:12
0001-MINOR-cli-print-parsed-command-when-not-found.patch
From 5bced85b9d68ef2972f4b649bba4358a0fcf5dca Mon Sep 17 00:00:00 2001
From: Abhijeet Rastogi <abhijeet.1989@gmail.com>
Date: Thu, 17 Nov 2022 04:42:38 -0800
Subject: [PATCH] MINOR: cli: print parsed command when not found
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
It is useful because when we're passing data to runtime API,
specially via code, we can mistakenly send newlines leading to some

Keybase proof

I hereby claim:

  • I am shadyabhi on github.
  • I am shadyabhi (https://keybase.io/shadyabhi) on keybase.
  • I have a public key ASABXGq9-yZFftPo8aAqOGD6sqb34CzRsISJDYJehzSc0Qo

To claim this, I am signing this object:

@shadyabhi
shadyabhi / delete_track.py
Created October 24, 2011 17:06
For theone
#!/usr/bin/python2
import os
import pylast
MPD_LIBRARY_LOCATION = "/var/lib/mpd/music/"
API_KEY = "your api key"
API_SECRET = "your secret"
username = "shadyabhi"
#Enter the hash directly.