Skip to content

Instantly share code, notes, and snippets.

@m-torin
m-torin / tips-for-structured-data-2
Created October 7, 2020 13:57 — forked from the-timallen/tips-for-structured-data-2
Tips for Structured Data on E-commerce sites
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@graph": [
{
"@type": "Organization",
"name": "Distilled",
"url": "https://www.distilled.net/",
"sameAs": [
"http://www.facebook.com/distilled",
@m-torin
m-torin / sqsHelper.js
Created July 9, 2020 20:36 — forked from guikaercher/sqsHelper.js
SQS helper for Node.js
module.exports = (sqs) => {
const createQueue = async (queueName) => {
return await new Promise((resolve, reject) => {
const createQueueParams = {
QueueName: queueName,
Attributes: {
'DelaySeconds': '0',
'MessageRetentionPeriod': '86400'
}
@m-torin
m-torin / aws-ses.js
Created July 9, 2020 20:36 — forked from guikaercher/aws-ses.js
AWS SES endpoints for TEMPLATES
const AWS = require('aws-sdk');
const ses = new AWS.SES({
region: 'us-east-1'
});
const createTemplate = () => {
var params = {
Template: { /* required */