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
{ | |
"name": "rollup-test", | |
"version": "1.0.0", | |
"description": "", | |
"types": "dist/typings/index.d.ts", | |
"type": "module", | |
"exports": { | |
".": { | |
"import": "./dist/esm/index.min.mjs", | |
"require": "./dist/cjs/index.min.cjs", |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
'use strict'; | |
const AWS = require('aws-sdk-mock'); | |
const assert = require('assert'); | |
const testFn = require('lambda-tester'); | |
const receiver = require('../index').handler; | |
const complaintNotification = require('./resources/complaintNotification.json'); | |
const missingHeaders = require('./resources/missingHeaders.json'); | |
const missingTargetArn = require('./resources/missingTargetArnHeader.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
const AWS = require('aws-sdk'); | |
const _ = require('lodash'); | |
const successResponse = message => { | |
return { | |
statusCode: 200, | |
body: JSON.stringify({ | |
message: message | |
}) | |
} |
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
const AWSMock = require('aws-sdk-mock'); | |
const AWS = require('aws-sdk'); | |
const expect = require('chai').expect; | |
describe('the module', () => { | |
it('should mock getItem from DynamoDB', async () => { | |
// Here we initiate the AWS.DynamoDB object before we call AWSMock | |
const dynamodb = new AWS.DynamoDB({ apiVersion: '2012-08-10' }); | |
AWSMock.setSDKInstance(AWS); |
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
<?php | |
require_once('vendor/autoload.php'); | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Exception\ClientException; | |
/** | |
* Helper class for GraphQL endpoint queries | |
* |
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
<template> | |
<div class="relative font-medium md:h-screen flex items-center content-center"> | |
<div class="mr-auto ml-auto w-full"> | |
<div class="w-full max-w-md mr-auto ml-auto mt-4 mb-1 text-center"> | |
<h1 class="text-gray-800 block text-3xl font-extrabold font-title">Sign in to your account</h1> | |
</div> | |
<div class="w-full max-w-md mr-auto ml-auto mt-43 mb-6 text-center font-medium text-sm"> | |
Or | |
<a href="#" | |
class="text-indigo-600 hover:text-indigo-800 duration-200 transition-all">start your 14-day free trial</a> |