Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env zsh
# Array of command names
sdk_commands=(
GetObjectCommand
)
# Client name
client=s3
@cpyle0819
cpyle0819 / record_generator.py
Created February 1, 2024 16:40
Generate N user action records.
from dataclasses import dataclass, asdict
from random import randint
from typing import Literal, Dict, List
from faker import Faker
@dataclass
class Record:
user_name: str
@cpyle0819
cpyle0819 / gh_clone.py
Last active June 29, 2024 09:36
Clone a GitHub Issue
import subprocess
import argparse
import json
# Must be executed from within a git repo.
def main():
parser = argparse.ArgumentParser(description='Clone a GitHub issue.')
parser.add_argument('issue_number', type=int, help='The issue number to clone.')
args = parser.parse_args()