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
const bus = new events.EventBus(this, "Bus") | |
const connection = new events.CfnConnection(this, "BusConnection", { | |
authorizationType: "API_KEY", | |
authParameters: { | |
ApiKeyAuthParameters: { | |
ApiKeyName: "key_name", | |
ApiKeyValue: "f8ad5770-6f20-42a7-8614-3b89ed5150aa", | |
}, | |
}, |
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
SET GLOBAL general_log = 'ON'; | |
SET GLOBAL general_log_file = '/var/log/mysql/all.log'; | |
SET GLOBAL general_log = 'OFF'; | |
tail -f -n0 /var/log/mysql/all.log |
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
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/athena" | |
) |