This document outlines the steps needed to set up a domain from GoDaddy onto AWS using services such as SES for email, Route 53 for DNS, and ACM for SSL certs.
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
is_npm_project() { | |
PACKAGE_LOCK=package-lock.json | |
if test -f "$PACKAGE_LOCK"; then | |
echo "true" | |
else | |
echo "false" | |
fi | |
} |
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
export const list = async (query: Query, db: DB) => db | |
// Subquery to get the main things we are going to | |
// join against. If we don't do this, our JOIN | |
// throws off our limit/offset query | |
.from((builder: DB) => builder.from('recipes') | |
.select('*') | |
.limit(query.limit) | |
.offset(query.offset) | |
.orderBy(query.sort_col, query.sort_ord) | |
.where(query.where || {}) |
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
import React, {useState, useEffect} from 'react'; | |
import Axios from 'axios'; | |
import './App.css'; | |
import AutoComplete from './AutoComplete' | |
function App() { | |
const [globalStats, setGlobalStats] = useState({}) | |
const [countryStats, setCountryStats] = useState({}) | |
const retriveStats = () => Axios.get('https://api.covid19api.com/summary') |
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
import React, {useState, useEffect} from 'react'; | |
import Axios from 'axios'; | |
import './App.css'; | |
import AutoComplete from './AutoComplete' | |
function App() { | |
const [globalStats, setGlobalStats] = useState({}) | |
const [countryStats, setCountryStats] = useState({}) | |
const retriveStats = () => Axios.get('https://api.covid19api.com/summary') |
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 std::io; | |
#[derive(Debug)] | |
struct AutoCompleteRequest { | |
value: String | |
} | |
#[derive(Debug)] | |
struct AutoCompleteResponse { | |
suggestions: Vec<String> |
We have failing SMTP requests because our port 25 was closed on our EC2 instances. These are the steps that you might want to follow in order to fix the SMTP issues and to be able to send email again.
You can look here for the docs that I followed to figure out the path forward.
- Install
php 7
- https://tecadmin.net/install-php-macos/
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.3
- Install
composer
- https://www.abeautifulsite.net/installing-composer-on-os-x
curl -sS https://getcomposer.org/installer | php