function spreadsheetErrorHandler<T extends (...args: any[]) => any>(
func: T
): T {
return <T>function (...args: any[]) {
try {
return func(...args)
} catch (err) {
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
Documents unzip clerk-nextjs-starter.zip | |
Archive: clerk-nextjs-starter.zip | |
creating: clerk-nextjs-starter/ | |
extracting: clerk-nextjs-starter/.env.local.sample | |
extracting: clerk-nextjs-starter/.gitignore | |
extracting: clerk-nextjs-starter/README.md | |
creating: clerk-nextjs-starter/components/ | |
extracting: clerk-nextjs-starter/components/Header.js | |
extracting: clerk-nextjs-starter/components/Layout.js | |
extracting: clerk-nextjs-starter/package.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
Navigate to AWS cognito and choose an option Manage user pools to view all existing cognito services. | |
Click on Create a user pool to create new cognito service | |
Section 1: Name | |
Enter a pool name. For ex. dreamplan and select option step through settings to manually select steps. | |
Section 2: Attributes | |
Select an option Email address or phone number to use email address or phone number as their "username" to sign up and sign in. |
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 AWS from 'aws-sdk' | |
import { v4 } from 'uuid' | |
const s3 = new AWS.S3({ signatureVersion: 'v4' }) | |
const { AWS_S3_SCREENSHOT_BUCKET } = process.env | |
export default async function getImageTempUrl( | |
prefix: string, | |
imgBuffer: Buffer |
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
# Sticky session module for nginx | |
# https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/ | |
# nginx configure command: ./configure --with-http_ssl_module --add-module=../nginx-sticky-module-ng/ --sbin-path=/usr/local/sbin --with-http_gzip_static_module | |
upstream vida_node_server { | |
sticky path=/; | |
server 127.0.0.1:3000 max_fails=3 fail_timeout=30s; | |
server [server2]:3000 max_fails=3 fail_timeout=30s; | |
} |