- Domain Verification Record
now dns add <NAKED_DOMAIN> _amazonses TXT <VALUE>
- DKIM Record Set
now dns add ._domainkey CNAME
-- This function is based on this description: | |
-- https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html | |
CREATE OR REPLACE FUNCTION | |
sign_s3_url( | |
m_host text, | |
m_verb text, | |
m_resource text, | |
m_region text, | |
m_key text, |
// 🤫The following code is experimental and might break in the future! | |
// Don't use it if you are using some kind of side-effect patterns like: Helmet, GraphQL or react-side-effect. | |
import { useRouter } from 'next/router' | |
function Home() { | |
const { | |
// `String` of the actual path (including the query) shows in the browser | |
asPath, | |
// `String` Current route |
import Head from 'next/head' | |
import SEO from '../constants/seo' | |
export default ({ | |
title = SEO.title, | |
description = SEO.description, | |
pageUrl = SEO.siteUrl, | |
mainImage = SEO.mainImage, | |
iosApplink = SEO.quizBuzzHomeUrl, | |
androidAppLink = SEO.quizBuzzHomeUrl, |
You're most likely using some kind of 3D or Native Maps in your App then, no?
Awaiting XCode 9.1 (which contains a fix) here's a workaround which replaces the bundled OpenGLES.framework
with the version from XCode 9.0 beta 3.
'use strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
function map (arr, func) { | |
return Promise.resolve().then(function () { | |
return arr.map(function (el) { return func(el) }) | |
}).all() | |
} | |
function mapSeries (arr, func) { | |
let currentPromise = Promise.resolve() | |
let promises = arr.map(function (el) { | |
return currentPromise = currentPromise.then(function () { |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |