Algorithms
Professor: Delaram Kahrobaei
Course Repository: vchrombie/CS-GY-6033-DAA1
#!/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... |
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", |
Algorithms
Professor: Delaram Kahrobaei
Course Repository: vchrombie/CS-GY-6033-DAA1
#!/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" |
https://github.com/Bahmni/crater/tree/BAH-1552
I hereby claim:
To claim this, I am signing this object: