Obsidian Note Formatting
Folders:
- Capture: Initial thoughts.
- Process: Refining info.
- Organize: Structured notes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
export PATH=$PATH:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
export PATH=$PATH:$(npm get prefix)/bin | |
find-up() { | |
path=$(pwd) | |
while [[ "$path" != "" && ! -e "$path/$1" ]]; do | |
path=${path%/*} |
What would you like ChatGPT to know about you to provide better responses?
I would like production-ready solutions with logging and error handling.
I want to follow best practices using the latest features of languages and frameworks. Specify types for everything and do not use "any" anywhere in the solution
I want the code to be clean and functional in nature, with discreet code extracted into functions so that try/catch blocks can focus on specific error scenarios
What would you like ChatGPT to know about you to provide better responses?
I am a software architect that works in a serverless environment using AWS.
I want solutions to specifically focus on a lambda function for problem asked, do not try to implement infrastructure or other artifacts as part of the solution
I would like production-ready solutions with logging and error handling as well as metrics and tracing using the `@aws-lambda-powertools` library. Always use the AWS SDK version 3 library.
I want to follow best practices using the latest features of languages and frameworks. Specify types for everything and do not use the "any" type anywhere in the solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {S3Client, ListObjectsV2Command, GetObjectCommand} from '@aws-sdk/client-s3'; | |
import {Workbook, Worksheet, Border} from 'exceljs'; | |
import {createGunzip} from 'zlib'; | |
import {Readable} from 'stream'; | |
// Configuring the AWS environment | |
const s3Client = new S3Client({region: 'us-east-1'}); | |
async function listJsonFiles(bucketName: string, prefix: string): Promise<string[]> { | |
console.log({ |
- Proposal: TE-0001
- Authors: Matthew Purdon
- Review Manager: TBD
- Status: Awaiting review
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Income": { | |
"display_order": 1, | |
"": { | |
"credit TT": "Employer", | |
"Payroll Deposit": "Employer", | |
"Online Banking 3rd party deposit": "Employer" | |
} | |
}, | |
"Business Expenses": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Zoho API Client | |
* | |
* Uses the Functional Options pattern to allow for a cleaner constructor | |
* | |
* @see: https://medium.com/swlh/using-a-golang-pattern-to-write-better-typescript-58044b56b26c | |
*/ | |
import axios from 'axios'; | |
import {Logger} from '@aws-lambda-powertools/logger'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Store the message in dynamo | |
* | |
* @param creationDate | |
* @param context | |
*/ | |
const storeMessage = async ( | |
creationDate: Date, | |
context, | |
): Promise<{ creationDateString: string; pk: string }> => { |
NewerOlder