Skip to content

Instantly share code, notes, and snippets.

View sayanchowdhury's full-sized avatar

Sayan Chowdhury sayanchowdhury

View GitHub Profile
from bs4 import BeautifulSoup
with open("txndoc.xml") as fobj:
data = fobj.read()
doc = BeautifulSoup(data, "xml")
responses = doc.find_all("Response")
csv_data = []
for response in responses:
import regex as re
def parse_version(data):
pattern = re.compile(r'\[([^][]+)\](\(((?:[^()]+|(?2))+)\))')
versions = []
for match in pattern.finditer(data):
description, _, url = match.groups()
versions.append((description, url))
return versions
@sayanchowdhury
sayanchowdhury / capz-sysext-readme.md
Last active February 22, 2024 16:30
setup CAPZ - systemd-sysext

CAPZ setup for flatcar-sysext

Environment Variables

Given below are the list of enviroment variables required:

export SUBSCRIPTION_ID="--"
export AZURE_CLIENT_ID="--"
export AZURE_TENANT_ID="--"
export AZURE_CLIENT_SECRET="--"
@sayanchowdhury
sayanchowdhury / README.md
Last active May 2, 2021 11:56 — forked from tormath1/README.md
generateCVE summary from a CVE list

DISCLAIMER: The CVE listed in the example is just for example purpose and might not be related to the package.

Usage example:

Output JSON

$ go run ./main.go -cvefile ./cves.txt -json | jq

{
git config --global url."git@github.com:".insteadOf "https://github.com/"
[url "git@github.com:"]
insteadOf = https://github.com/
title separator verticalSeparator revealOptions
Fedora Hubs
<!--s-->
<!--v-->
transition
fade

Fedora Hubs

A walkthrough the project

#!/bin/bash
nextmonday=`date --date "$DAYCHECK +$((7-day_of_week)) days" +%Y%m%d`
filename="$HOME/reports/report-$nextmonday.txt"
echo >> $filename
vim "+normal G$" +startinsert $filename
import boto.ec2
import os
env = os.environ
aws_access_key_id = os.environ.get('AWS_ACCESS_KEY')
aws_secret_access_key = os.environ.get('AWS_SECRET_ACCESS_KEY')
REGIONS = (
'us-east-1',

Keybase proof

I hereby claim:

  • I am sayanchowdhury on github.
  • I am sayanchowdhury (https://keybase.io/sayanchowdhury) on keybase.
  • I have a public key ASCjho8yHYugvCT-H2RfOroIBiMw9vWikPlI7ErSfVbktgo

To claim this, I am signing this object: