Skip to content

Instantly share code, notes, and snippets.

View vishalapte's full-sized avatar
🚀
Building

Vishal Apte vishalapte

🚀
Building
View GitHub Profile
datetime value
2019-10-31 00:00:00 0.8430180331124575
2019-10-31 01:00:00 0.7826086311709635
2019-10-31 02:00:00 0.7663880412254971
2019-10-31 03:00:00 0.7634241319212418
2019-10-31 04:00:00 0.8012377023144415
2019-10-31 05:00:00 0.8043293901229134
2019-10-31 06:00:00 0.8916101786178693
2019-10-31 07:00:00 1.1688269710885222
2019-10-31 08:00:00 0.9969369552468788
dtm volume
2020-01-01 00:00:00 0.0
2020-01-01 01:00:00 0.0
2020-01-01 02:00:00 0.0
2020-01-01 03:00:00 0.0
2020-01-01 04:00:00 0.0
2020-01-01 05:00:00 0.0
2020-01-01 06:00:00 0.0
2020-01-01 07:00:00 0.0
2020-01-01 08:00:00 0.0
@vishalapte
vishalapte / kminit.sh
Created October 20, 2023 03:42
Kobayashi Maru configuration
cd ~/
git clone https://github.com/eninedev/kobayashi-maru.git techtest
cd techtest
git submodule update --init
python3.8 -m venv venv
source venv/bin/activate
pip install -r config/requirements.txt
python manage.py migrate
python manage.py check
echo ""
@vishalapte
vishalapte / aws-dump-accounts.sh
Last active June 4, 2026 01:14
Idempotent snapshot of AWS Organizations IAM state across all accounts. Identity Center permission sets and org-managed roles land in global/; account-specific resources in accounts/<name>/. Member accounts symlink to global resources — drift is visible in git status.
#!/usr/bin/env bash
# aws-dump-accounts.sh
# Fetches AWS state for all org accounts in the correct order: management
# account first (establishes canonical files), then member accounts
# (symlink where appropriate).
#
# Run as: ADMIN_PROFILE=aws_iam_user ./scripts/aws-dump-accounts.sh
set -euo pipefail