Skip to content

Instantly share code, notes, and snippets.

View vchrombie's full-sized avatar

Venu Vardhan Reddy Tekula vchrombie

View GitHub Profile
#!/usr/bin/env python3
import re
from collections import defaultdict
def parse_line(line):
"""
Parse a single line of input.
Expected formats:
- Client<TAB>AppServer<TAB>Instance Mismatch (a/b)
(async function() {
// Mapping of dropdown field IDs to desired answers
const dropdownFieldAnswers = {
'input-83': 'Yes', // Do you certify you meet all minimum qualifications...
'input-85': 'Opt-In to receive text messages from Walmart', // Would you like to receive mobile text message updates...
'input-89': 'Yes', // Are you legally able to work...
'input-91': '18 years of age and Over', // Please select your age category
'input-93': 'Have never been an employee of Walmart Inc or any of its subsidiaries', // Walmart Associate Status/Affiliation
'input-99': 'Yes', // Are you able to provide work authorization within 3 days...
'input-101': 'No', // Will you now or in the future require sponsorship...
@vchrombie
vchrombie / generate_flow_log_data.py
Created September 24, 2024 14:57
Generates random flow log data (v2)
import csv
import random
import string
# Load protocols from protocols.csv
protocols = []
with open('protocols.csv', 'r') as protocols_file:
reader = csv.DictReader(protocols_file)
for row in reader:
protocols.append({'number': row['number'], 'name': row['name']})
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
@vchrombie
vchrombie / README.md
Last active June 30, 2024 19:03
Courses at NYU
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
headers="Authorization: Bearer $GRAFANA_API_KEY"
in_path="$GIT_SRC/dashboards_raw"
echo "Exporting Grafana dashboards from $GRAFANA_URL"

Keybase proof

I hereby claim:

  • I am vchrombie on github.
  • I am vchrombie (https://keybase.io/vchrombie) on keybase.
  • I have a public key ASB2DWf8IaMKLDiWvCACBdmkE6Jlj86rCtH-N38PDeE2jQo

To claim this, I am signing this object:

gist spammer 🎉

import matplotlib.pyplot as plt
semesters = [1, 2, 3, 4, 5, 6, 7, 8]
grades = [9.08, 8.14, 8.43, 7.89, 8.34, 7.55, 7.84, 9.06]
fig, ax = plt.subplots(figsize=(10,8))
ax.plot(semesters, grades, '-o')
ax.set(title="Grades: Venu (U4CSE16508)",