Skip to content

Instantly share code, notes, and snippets.

@aarora79
aarora79 / update_repo_access.sh
Created September 6, 2025 14:21
Script to bulk manage GitHub repo collaborator permissions - revokes and re-grants access with maintain level for classroom/organization repositories.
#!/bin/bash
# Script to update GitHub repository access for multiple users
# First revokes existing access, then adds back with maintain permission
#
# USAGE EXAMPLES:
# ==============
#
# Process a single user (mw1296) with default repo pattern:
# ./update_repo_access.sh -u mw1296
conda create --name dsan6725_py311 -y python=3.11 ipykernel
conda activate dsan6725_py311
cat <<EOF > requirements.txt
boto3==1.35.87
litellm==1.55.12
langchain==0.3.13
llama-index==0.12.8
sagemaker==2.237.1
torch==2.5.1
wandb==0.19.1
@aarora79
aarora79 / nova_reel_rest_api.py
Last active December 16, 2024 15:58
Amazon Nova Reel model via REST API. Helpful references: https://docs.aws.amazon.com/nova/latest/userguide/video-gen-code-examples.html, https://docs.aws.amazon.com/pdfs/bedrock/latest/APIReference/bedrock-api.pdf. Update lines 19, 21 and 121 as needed for bucket name, region name and prompts.
# Invoke the Amazon Nova Reel model to create a video and monitor the status
# of the async job.
# tested with Python 3.12
import json
import time
import uuid
import boto3
import requests as req
import botocore.session