Skip to content

Instantly share code, notes, and snippets.

View vivasvan1's full-sized avatar
🎯
Learning Rust

Vivasvan vivasvan1

🎯
Learning Rust
View GitHub Profile
@vivasvan1
vivasvan1 / aws.sh
Last active September 30, 2025 12:51
This script updates creds in your ~/.aws/credentials file using aws cli
#!/bin/bash
# Function to detect OS
detect_os() {
case "$(uname -s)" in
Darwin*) echo "macos" ;;
Linux*) echo "linux" ;;
CYGWIN*|MINGW32*|MSYS*|MINGW*) echo "windows" ;;
*) echo "unknown" ;;
esac