I'm using Homebrew to stop the service
brew services stop mysql
// just adds target: "serverless" | |
const path = require('path'); | |
const glob = require('glob'); | |
module.exports = { | |
webpack: config => { | |
config.module.rules.push( | |
{ | |
test: /\.(css|scss)/, |
import { useState } from 'react'; | |
export function useCounter(initial = 0) { | |
const [count, setCount] = useState(initial); | |
return [count, () => setCount(count + 1)]; | |
} |
'use strict'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const PnpWebpackPlugin = require('pnp-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); | |
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); | |
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); | |
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin'); |
# The official MySQL (https://hub.docker.com/_/mysql/) supports only one MYSQL_DATABASE environment variable. | |
# By modifying the entrypoint and passing shell script, you can create multiple dbs without having to make a mysql image just for this purpose. | |
version: '3' | |
services: | |
# Some other service connecting to mysql | |
db: | |
image: mysql:5.6 |
declare module 'yup' { | |
declare type ValidateOptions = { | |
strict?: boolean, | |
abortEarly?: boolean, | |
stripUnknown?: boolean, | |
recursive?: boolean, | |
context?: any | |
}; | |
declare type ValidationError = { |
# Based on https://stackoverflow.com/a/26252993/1665539 | |
# Show all installed Java versions | |
/usr/libexec/java_home -V | |
# Select major version (if unique, otherwise specify full name e.g. 1.8.0_131) | |
set -x JAVA_HOME (/usr/libexec/java_home -v 1.8) | |
# Verify | |
java -version |
// moved to https://wordpress.org/plugins/classic-editor-addon/ |
touch ~/.config/fish/config.fish; | |
echo "set --export ANDROID $HOME/Library/Android;" >> ~/.config/fish/config.fish | |
echo "set --export ANDROID_HOME $ANDROID/sdk;" >> ~/.config/fish/config.fish | |
echo "set -gx PATH $ANDROID_HOME/tools $PATH;" >> ~/.config/fish/config.fish | |
echo "set -gx PATH $ANDROID_HOME/tools/bin $PATH;" >> ~/.config/fish/config.fish | |
echo "set -gx PATH $ANDROID_HOME/platform-tools $PATH;" >> ~/.config/fish/config.fish | |
echo "set -gx PATH $ANDROID_HOME/emulator $PATH" >> ~/.config/fish/config.fish | |
echo "set --export JAVA_HOME /Applications/Android\ Studio.app/Contents/jbr/Contents/Home;" >> ~/.config/fish/config.fish |
import React from 'react' | |
import { withRouter, Link } from 'react-router-dom' | |
import { graphql, compose } from 'react-apollo' | |
import { Formik } from 'formik' | |
import Yup from 'yup' | |
import FormWideError from '../elements/form/FormWideError' | |
import TextInput from '../elements/form/TextInput' | |
import Button from '../elements/form/Button' | |
import { H2 } from '../elements/text/Headings' |