Skip to content

Instantly share code, notes, and snippets.

View jonny-rimek's full-sized avatar

Jonny Rimek jonny-rimek

  • Berlin, Germany
View GitHub Profile
@jonny-rimek
jonny-rimek / enventbridge.ts
Created June 21, 2021 22:22
eventbridge api destination
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",
},
},
@jonny-rimek
jonny-rimek / log.sql
Created August 13, 2020 17:45
Create query log in MySQL 8
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
@jonny-rimek
jonny-rimek / main.go
Created August 8, 2019 12:50 — forked from kartiksura/main.go
Querying AWS Athena using Golang SDK
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"
)