Skip to content

Instantly share code, notes, and snippets.

View nick-kang's full-sized avatar

Nick Kang nick-kang

  • USA
View GitHub Profile
@quad
quad / 0-modular-errors-with-rusts-thiserror.md
Last active February 9, 2025 00:31
Modular Errors with Rust's thiserror

I've been writing Rust full-time with a small team for over a year now. Throughout, I've lamented the lack of clear best practices around defining error types. One day, I'd love to write up my journey and enumerate the various strategies I've both seen and tried. Today is not that day.

Today, I want to reply to a blog post that almost perfectly summarised my current practice.

Go read it; I'll wait!


@rupertbg
rupertbg / get-codepipeline-execution-id-within-codebuild.sh
Last active April 1, 2024 12:49
Get a CodePipeline Execution ID from within a CodeBuild Job
aws codepipeline get-pipeline-state --region us-west-2 --name ${CODEBUILD_INITIATOR#codepipeline/} --query 'stageStates[?actionStates[?latestExecution.externalExecutionId==`'${CODEBUILD_BUILD_ID}'`]].latestExecution.pipelineExecutionId' --output text