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
'use strict'; | |
import AWS from "aws-sdk"; | |
import { UserHeaderType } from "../../models/types"; | |
import DynamoDB from "../../classes/dynamoDB"; | |
import logger from "../../config/logger"; | |
const handler = async (event: HeaderRequestInterface<UserHeaderType>) => { | |
const genaralErrorMessage = "there was an error while checkig business name"; | |
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
class CustomError extends Error { | |
static createCustomErrorResposne(statusCode: number, answer?: string): ErrorResponseType { | |
return { | |
statusCode: statusCode, | |
answer: answer = '' | |
} | |
} | |
static isErrorInstanceOfCustomError(error: any): boolean { | |
if(error instanceof CustomError) return true |
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
ssh-keygen -t rsa -b 4096 -C "mail@gmail" | |
jesli masz więcej kluczy to doadjemy rownież | |
ssh-add ..ścieżka do klicza jaki chcemy dodać | |
https://github.com/antonykidis/Setup-ssh-for-github/blob/master/Setup-ssh-on-github.pdf |
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
'use strict'; | |
const AWS = require('aws-sdk'); | |
AWS.config.update({ region: 'us-east-1' }) | |
const { dialogflow, SignIn } = require('actions-on-google'); | |
const app = dialogflow(); | |
const request = require('request-promise') | |
const rp = require('request-promise'); |