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 bash
set -euo pipefail
print_usage() {
cat <<EOF
Usage: $0 -clients CLIENT1,CLIENT2 [-hosts HOST1,HOST2] [-partitions PART1,PART2]
-clients Comma-separated list of clients (BLK, USSHARED, EUSHARED). (required)
-hosts Comma-separated list of BBC host names to bounce (e.g. brscbbc810).
-partitions Comma-separated list of partitions to bounce (e.g. BBC_BETA).
#!/bin/bash
# Usage: ./deploy_to_prod.sh CLIENT1[,CLIENT2,...]
CLIENTS="$1"
if [ -z "$CLIENTS" ]; then
echo "Usage: $0 CLIENT1[,CLIENT2,...]"
exit 1
fi
#!/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: