Skip to content

Instantly share code, notes, and snippets.

View ktstevenson's full-sized avatar

Katherine Stevenson ktstevenson

View GitHub Profile
@ktstevenson
ktstevenson / MIRRworkshop.md
Created May 17, 2023 20:19 — forked from mzbat/MIRRworkshop.md
Mock Interview & Resume Review Workshop

Mock Interview & Resume Review Workshop

##Background September 2016, I tweeted that I'd volunteer time to help a few people at DerbyCon who struggle with anxiety during interviews. I'd just come off of a 2 week hiring sprint and saw a lot of candidates with great technical skills who failed miserably when it came to answering "soft" questions. I thought spending a couple of hours with struggling folks at DerbyCon would be a simple way to give back to the community that's given me so much.

Response was overwhelming and it became pretty clear that the community needed more help than I would be able to give in a few short hours. I published 2 Google forms - One for volunteers to help and the other for participants. Somewhere along the way, DerbyCon organizers caught wind of the project and generously offered a room to conduct mock interviews and resume reviews. Just like that, a workshop was born.

I'm setting up this Gist with the hope that sharing my format, forms, guidelines, and lessons learned will insp

@ktstevenson
ktstevenson / CheckDefenderAVHealthState.kusto
Created November 29, 2021 13:58 — forked from f-bader/CheckDefenderAVHealthState.kusto
Advanced hunting query to check on a few vital Defender AV health settings
// Check Defender AV related health issues
// Microsoft Defender Antivirus is disabled - scid-2010
// Microsoft Defender Antivirus definitions are outdated - scid-2011
// Microsoft Defender Antivirus real-time behavior monitoring is disabled - scid-91
// Microsoft Defender Antivirus real-time protection is disabled - scid-2012
// Microsoft Defender Antivirus cloud service connectivity is impaired - scid-2014
DeviceTvmSecureConfigurationAssessmentKB
| where ConfigurationName contains "Defender"
| join kind=innerunique DeviceTvmSecureConfigurationAssessment on ConfigurationId
| where ConfigurationId in ("scid-2010","scid-2011","scid-2012","scid-91","scid-2014")
@ktstevenson
ktstevenson / cloudinit.yaml
Created October 14, 2017 17:44
Cloud-init directive to add AWS SSM checking at boot time
#cloud-config
write_files:
- content: |
#!/bin/bash
REGION=$( curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | python -c "import sys, json; print json.load(sys.stdin)['region']" )
aws --region $REGION ssm list-associations --max-items 1 > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "No privs to run Amazon SSM agent. Stopping..."
sudo stop amazon-ssm-agent
fi
@ktstevenson
ktstevenson / ssmcheck.sh
Last active October 14, 2017 17:17
Stop Amazon SSM agent if instance lacks basic SSM permissions
#!/bin/bash
REGION=$( curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | python -c "import sys, json; print json.load(sys.stdin)['region']" )
aws --region $REGION ssm list-associations --max-items 1 > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "No privs to run Amazon SSM agent. Stopping..."
sudo stop amazon-ssm-agent
fi
@ktstevenson
ktstevenson / aws-bill-normalizer.py
Created September 1, 2017 17:30
Normalize a DLT billing file. Removes $0 and summary lines. Exports a TSV file suitable for processing by Athena
import sys
import csv
INPUT_FILE = sys.argv[1]
# Define our canonical field list
fields = ['InvoiceID', 'PayerAccountId', 'LinkedAccountId', 'RecordType',
'RecordId', 'ProductName', 'RateId', 'SubscriptionId', 'PricingPlanId',
'UsageType', 'Operation', 'AvailabilityZone', 'ReservedInstance',
'ItemDescription', 'UsageStartDate', 'UsageEndDate', 'UsageQuantity',
@ktstevenson
ktstevenson / centos7-vagrant.json
Last active November 15, 2018 13:08
Packer build configuration - hangs during shell provisioning after a reboot
{
"variables": {
"iso_checksum": "27bd866242ee058b7a5754e83d8ee8403e216b93d130d800852a96f41c34d86a",
"iso_checksum_type": "sha256",
"iso_name": "CentOS-7-x86_64-Minimal-1611",
"iso_url": "http://mirror.cs.vt.edu/pub/CentOS/7/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"scripts_dir" : "scripts",
"version": "0.0.1"