First, the Auth construct adds an /auth route to the API.
const auth = new Auth(stack, 'auth', {
authenticator: {
handler: 'auth.handler',
},
});
const api = new Api(stack, 'api', {| function on_error --on-event fish_command_error | |
| exit | |
| end | |
| set -l ORANGE "#F4AC45" | |
| set -l GREEN "#04B575" | |
| set -l PINK 212 | |
| set -l GREY 250 | |
| function _log |
| set fstate "$HOME/.local/state/tmp-stack.json" | |
| # See: https://gist.github.com/darksinge/6818cb16c1b76a7a440f12dc03c283cd | |
| source "$HOME/.config/fish/functions/gumlog.fish" | |
| function fee | |
| if test (count $argv) -eq 0 | |
| __fee_push | |
| return 0 | |
| end |
| #!/usr/bin/env bash | |
| set -e | |
| export DEBUG=0 | |
| export AWS_REGION="us-east-1" | |
| function debug() { | |
| if [ $DEBUG -eq 1 ]; then | |
| echo "ERROR: $@" >&2 |
First, the Auth construct adds an /auth route to the API.
const auth = new Auth(stack, 'auth', {
authenticator: {
handler: 'auth.handler',
},
});
const api = new Api(stack, 'api', {| local wk_ok, wk = pcall(require, "which-key") | |
| if not wk_ok then | |
| return | |
| end | |
| local vopts = lvim.builtin.which_key.vopts | |
| local opts = lvim.builtin.which_key.opts | |
| local mappings = { | |
| ["z"] = { |
| #!/usr/bin/env bash | |
| # Get the <token> through the GitHub website: | |
| # 1. Go to Settings->Developer Settings->Personal access tokens | |
| # 2. Create a token with the 'repo' scope selected. | |
| # https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token | |
| # The value for "event_type" should match "on.repository_dispatch.type" in workflow.yaml. | |
| curl -X POST \ | |
| -H "Accept: application/vnd.github.v3+json" \ |
| {"lastUpload":"2020-06-04T20:13:28.728Z","extensionVersion":"v3.4.3"} |
| # /etc/nginx/nginx.conf | |
| http { | |
| ... | |
| include /etc/nginx/sites-available/*.conf # Include all config files that end in .conf | |
| ... | |
| } | |
| # /etc/nginx/sites-available/example.com.conf | |
| server { | |
| listen 80 default_server; |