npm create vite@latest sample-app -- --template react-ts
cd sample-app
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
////////// Athena ////////// | |
const dataCatalogAggregate = new athena.CfnDataCatalog( | |
scope, | |
"dataCatalogAggregate", | |
{ | |
name: "dataCatalogAggregate", | |
type: "GLUE", | |
parameters: { | |
"catalog-id": accountId, |
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 { PostSlackApiGwStack } from "./PostSlackApiGwStack"; | |
... | |
const postSlackGwStack = new PostSlackGwStack(scope, id, props); | |
const postSlackGateway = postSlackGwStack.getApiGateway(); | |
const SLACK_APP_TOKEN = "xoxb-XXXXXXXXXX"; |
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
NODE_TLS_REJECT_UNAUTHORIZED=0 |
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 strict'; | |
exports.handler = (event, context, callback) => { | |
const request = event.Records[0].cf.request; | |
const regex = /.*\/$/; | |
const result = request.uri.match(regex); | |
if (result !== null) { | |
request.uri += 'index.html'; |
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
location /lua_return_404 { | |
set $body ""; | |
rewrite_by_lua ' | |
ngx.exit(404) | |
'; | |
header_filter_by_lua_block { | |
local body = "{ \"http_host\": \"" .. ngx.var.http_host .. "\" }" | |
ngx.var.body = body | |
local body_length = string.len(body) |
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
config.vm.network "forwarded_port", guest: 80, host: 8000 |
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
other_args="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock" |
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
public class CodeSampleData extends SampleData { | |
public static final String CREATE_TABLE = "" | |
+ "create table " + TABLE_NAME + " ( " | |
+ FIELD_ID + " integer primary key autoincrement " | |
+ ", " + FIELD_VALUE_INT + " integer " | |
+ ", " + FIELD_VALUE_LONG + " integer " | |
+ ", " + FIELD_VALUE_BOOL + " integer " | |
+ ", " + FIELD_VALUE_STRING_8 + " text " | |
+ ", " + FIELD_VALUE_STRING_100 + " text " | |
+ ", " + FIELD_VALUE_STRING_1000 + " text " |
NewerOlder