How to use:
./wordle.sh
Or try the unlimit mode:
| /** | |
| * AWS Lambda (Node) - Using Insight API to Query your Cloudwatch Log for Daily Error Report | |
| * @author Zeno Yu <zeno.yu@gmail.com> | |
| */ | |
| const AWS = require('aws-sdk'); | |
| var cloudwatchlogs = new AWS.CloudWatchLogs(); | |
| exports.handler = async (event) => { | |
| // Cloudwatch Log Group name |
#!/usr/bin/env bash
PROJECT="<project-id>"
### Sinks ###
#Base sink for all logs to BigQuery
gcloud logging sinks create --quiet --project $project ${project}_bigquery_sink bigquery.googleapis.com/projects/billing-exports-184901/datasets/CLOUD_LOGGING_EXPORTS --log-filter "resource.type:*"
#### Metrics ####
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |