Inspired and adjusted from this gist.
- Install
dnsmasq
brew install dnsmasq
- Setup
Inspired and adjusted from this gist.
dnsmasq
brew install dnsmasq
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.
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 |
const util = require('util') | |
module.exports = (obj) => util.inspect(obj, { showHidden: false, depth: null }) |
const AWS = require('aws-sdk') | |
AWS.config.update({ | |
accessKeyId: "access-key", | |
secretAccessKey: "secret-access-key" | |
}); | |
new AWS.S3().putObject( | |
{ | |
Bucket: "bucket-name", |
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 | |
} |
# python 3 only!!! | |
import collections | |
import math | |
class Graph: | |
def __init__(self): | |
self.vertices = set() | |
self.edges = collections.defaultdict(list) | |
self.weights = {} |