Skip to content

Instantly share code, notes, and snippets.

View cal0610's full-sized avatar

Calvin Pang cal0610

View GitHub Profile
@cal0610
cal0610 / starship.toml
Created December 6, 2022 14:37 — forked from 3ayazaya/starship.toml
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) "
@cal0610
cal0610 / find_duplicate_objects.py
Created December 4, 2022 23:01 — forked from dlinsley/find_duplicate_objects.py
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()