Skip to content

Instantly share code, notes, and snippets.

View cal0610's full-sized avatar

Calvin Pang cal0610

View GitHub Profile
@3ayazaya
3ayazaya / starship.toml
Last active July 12, 2024 09:57
My Starship terminal configuration file
#format = """
#[╭─user───❯](bold blue) $username
#[┣─system─❯](bold yellow) $hostname
#[┣─project❯](bold red) $directory$rust$git_branch$git_status$package$golang$terraform$docker_context$python$docker_context$nodejs
#[╰─cmd────❯](bold green)
#"""
[username]
style_user = "green bold"
style_root = "red bold"
format = "[$user]($style) "
@dlinsley
dlinsley / find_duplicate_objects.py
Last active September 28, 2023 17:18
Find duplicate objects in an aws s3 bucket by comparing ETag
#!/usr/bin/env python3
import boto3
import argparse
import string
parser = argparse.ArgumentParser('Find duplicate objects in an aws s3 bucket')
parser.add_argument('--bucket', dest='myBucket', default='yourBucketName', help='S3 Bucket to search')
cliArgs = parser.parse_args()