Inspired and adjusted from this gist.
- Install
dnsmasq
brew install dnsmasq
- Setup
create table teams ( | |
id uuid primary key default gen_random_uuid(), | |
name text not null, | |
city text not null | |
); | |
create table players ( | |
id uuid primary key default gen_random_uuid(), | |
team_id uuid references teams(id), | |
name text, |
Inspired and adjusted from this gist.
dnsmasq
brew install dnsmasq
function auth0Url(tenant: string, userId: string) { | |
const userIdInUrl = btoa(encodeURIComponent(userId)) | |
return `https://manage.auth0.com/dashboard/us/${tenant}/users/${userIdInUrl}` | |
} | |
auth0Url("foo-development", "auth0|1234") |
confluent-x.y.z
(where x.y.z is the major.minor.patch version) to your $HOME
directory.bashrc
or .zshrc
export PATH="${HOME}/confluent-x.y.z/bin:${PATH}"
mysql -h <host-name> -D <database-name> -u <username> --password=<password> -e "SELECT 1;" | tr '\t' ',' >> output.csv |
You're trying to use Kafka Connect, using the Debezium to Postgres, and your Postgres database is running on Aiven. You have pgoutput
selected as the plugin name (this is the best choice).
You're getting this error: Caused by: org.postgresql.util.PSQLException: ERROR: must be superuser to create FOR ALL TABLES publication
.
Aiven doesn't allow you to have a superuser. Debezium tries to create a publication, and fails, because it's not using a superuser.
docker kill $(docker ps -q) |
restart() { | |
if [[ $@ == "wifi" ]]; then | |
command networksetup -setairportpower en0 off | |
command networksetup -setairportpower en0 on | |
else | |
command echo not yet defined | |
fi | |
} |
const AWS = require('aws-sdk') | |
AWS.config.update({ | |
accessKeyId: "access-key", | |
secretAccessKey: "secret-access-key" | |
}); | |
new AWS.S3().putObject( | |
{ | |
Bucket: "bucket-name", |
const util = require('util') | |
module.exports = (obj) => util.inspect(obj, { showHidden: false, depth: null }) |