This file contains 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 {AxiosError} from "axios"; | |
export interface Request<DataType = {}> { | |
endpoint: string; | |
params?: object; | |
data?: DataType; | |
headers?: object; | |
withCredentials?: boolean; | |
ownAPI?: boolean; | |
} |
This file contains 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
#!/bin/zsh | |
# You should use lowercase, all one word project names | |
PROJECT=${1} | |
PROJECTS_DIR="${HOME}/projects" | |
# If your base projects directory doesn't exist, create it. | |
if [ ! -d ${PROJECTS_DIR} ]; then | |
echo "Creating ${PROJECTS_DIR}..." | |
mkdir -p ${PROJECTS_DIR} |
This file contains 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
#!/bin/zsh | |
docker-machine create --driver=virtualbox ${1} |