This file contains 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
-- USERS | |
\copy ( SELECT username as "UserId", name as "Name", email_address as "Email", created_at as "evnt_created_at", created_at as "evnt_updated_at", 'events_' as "events", validated as "Validated" FROM users where created_at between '2019-12-11 02:06' and '2019-12-16 09:09') to '/tmp/users.csv' with csv; | |
-- PROJECT | |
\copy ( SELECT id::varchar as "ProjectId", owner_id::varchar as "OwnerId", created_at as "evnt_created_at", created_at as "evnt_updated_at", 'events_' as "events" FROM projects where created_at between '2019-12-11 02:10' and '2019-12-16 09:15') to '/tmp/projects.csv' with csv; | |
This file contains 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
docker run \ | |
--name kafka \ | |
--net=host \ | |
--env TOPICS=emails \ | |
-d spotify/kafka |
This file contains 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
cat ~/.gvm/environments/go1.4 | |
export GVM_ROOT; GVM_ROOT="/Users/josh/.gvm" | |
export gvm_go_name; gvm_go_name="go1.4" | |
export gvm_pkgset_name; gvm_pkgset_name="global" | |
export GOROOT; GOROOT="$GVM_ROOT/gos/go1.4" | |
-export GOPATH; GOPATH="$GVM_ROOT/pkgsets/go1.4/global" | |
export GVM_OVERLAY_PREFIX; GVM_OVERLAY_PREFIX="${GVM_ROOT}/pkgsets/go1.4/global/overlay" | |
export PATH; PATH="${GVM_ROOT}/pkgsets/go1.4/global/bin:${GVM_ROOT}/gos/go1.4/bin:${GVM_OVERLAY_PREFIX}/bin:${GVM_ROOT}/bin:${PATH}" | |
export LD_LIBRARY_PATH; LD_LIBRARY_PATH="${GVM_OVERLAY_PREFIX}/lib:${LD_LIBRARY_PATH}" | |
export DYLD_LIBRARY_PATH; DYLD_LIBRARY_PATH="${GVM_OVERLAY_PREFIX}/lib:${DYLD_LIBRARY_PATH}" |
This file contains 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
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
sudo mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ |