Obsidian Note Formatting
Folders:
- Capture: Initial thoughts.
- Process: Refining info.
- Organize: Structured notes.
This file contains hidden or 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 express, { Request, Response } from 'express'; | |
import bodyParser from 'body-parser'; | |
const app = express(); | |
app.use(bodyParser.json()); | |
interface Book { | |
title: string; | |
author: string; | |
isbn: string; |
This file contains hidden or 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
Ref: http://stackoverflow.com/questions/15185661/update-openssl-on-os-x-with-homebrew | |
``` | |
1. Make sure openssl is installed via homebrew | |
homebrew install openssl | |
2. if /usr/local/bin is not already the first item in the $PATH, modify the PATH variable | |
set -gx PATH /user/local/bin $PATH | |
3. Make symlink to the binary |
This file contains hidden or 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
jq \ | |
--null-input \ | |
--arg venv "$(basename $(poetry env info -p))" \ | |
--arg venvPath "$(dirname $(poetry env info -p))" \ | |
'{ "venv": $venv, "venvPath": $venvPath }' \ | |
> pyrightconfig.json |
This file contains hidden or 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 hidden or 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
NewerOlder