Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
#!/bin/bash | |
# | |
# Perform MySQL 5.6+ restart with buffer pool save and reload | |
# MySQL credentials | |
user= | |
pass= | |
# Exit on any command failure | |
set -e |
function buildTriangle(numLines) { | |
var linesArray = []; | |
var iterations = numLines; | |
if (numLines < 1 ) { | |
return alert("Try a bigger number!") | |
} | |
for (var line = 1; line <= iterations; line++) { //start @ 1 instead of zero to avoid empty first index string | |
linesArray.push("#".repeat(line) + "\n"); |
// My Code | |
for (var i = 1; i <= 100; i++) { | |
switch (true) { | |
//case ((i % 3 === 0) && (i % 5 === 0)): | |
case (i % 15 === 0): // Use one comparison instead of two, because maths | |
console.log("FizzBuzz"); | |
break; | |
case (i % 3 === 0): |
var bubbleSort = function(array) { | |
// a method to swap values @ a given pair of index positions | |
this.shifter = function(input, idxNext, idxElement) { | |
console.log('shifter engaged'); | |
var temp = input[idxNext]; | |
input[idxNext] = input[idxElement]; | |
input[idxElement] = temp; | |
return input; | |
} |
require('es6-promise'); | |
// setTimeout(function() { console.log('TIMED OUT!') }, 300); | |
var promise = new Promise((fulfill, reject) => { | |
setTimeout(() => { | |
fulfill("FULFILLED!") | |
}, 300) | |
}) | |
.then((successMessage) => { |
# OSX | |
# | |
.DS_Store | |
# Git history backup | |
.git.bak | |
# Xcode | |
# | |
build/ |
const myShittyArray = [55, 12, 32, 42, 17, 88, 19, 23, 71, 86, 22] | |
const bubbleSort = (array) => { | |
// a method to swap values @ a given pair of index positions | |
this.shifter = (input, idxNext, idxElement) => { | |
let temp = input[idxNext] | |
input[idxNext] = input[idxElement] | |
input[idxElement] = temp |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
#!/usr/bin/env bash | |
# License: MIT - https://opensource.org/licenses/MIT | |
# | |
# Usage: | |
# | |
# Encrypt a file: | |
# kms-vault encrypt My-Key-Alias some-file-i-want-encrypted.txt > topsecret.asc | |
# |
Embedded stack arn:aws:cloudformation:us-west-2:<STAGINGACCOUNTNUMBER>:stack/staging-WebAppStack-FrontendStackNestedStackFrontendStackNestedStackResource7A0E341B-1INCLV1YSO50I/b1e16370-7dab-11eb-9d50-061858c75b4d was not successfully created: The following resource(s) failed to create: [subzoneDelegationCrossAccountZoneDelegationRecordCrossAccountZoneDelegationRecordarubaniwebstaginggruvmeD89FF7A1, CertificateCertificateRequestorFunctionServiceRoleDefaultPolicy3C8845BC]. |