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
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except | |
# in compliance with the License. A copy of the License is located at | |
# | |
# https://aws.amazon.com/apache-2-0/ | |
# | |
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | |
# specific language governing permissions and limitations under the License. |
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
apt update --assume-yes && \ | |
apt install docker.io --assume-yes && \ | |
apt install docker-compose --assume-yes && \ | |
usermod -a -G docker ubuntu |
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
package clients; | |
import clients.avro.PositionValue; | |
import io.confluent.kafka.serializers.AbstractKafkaAvroSerDeConfig; | |
import io.confluent.kafka.serializers.KafkaAvroSerializer; | |
import io.confluent.kafka.serializers.KafkaAvroSerializerConfig; | |
import io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor; | |
import java.io.File; | |
import java.io.IOException; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" | |
Before you run this establish an SSH tunnel to the postgres database: | |
ssh -L 5432:localhost:5432 ubuntu@52.41.18.116 | |
""" | |
import boto3 | |
import pprint | |
import sys | |
import psycopg2 | |
import hashlib |
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
#!/bin/bash -ex | |
# force all the extensions to update | |
code --install-extension vscjava.vscode-java-pack --force && \ | |
code --install-extension ms-azuretools.vscode-docker --force && \ | |
code --install-extension ms-python.python --force && \ | |
code --install-extension ms-vscode.csharp --force && \ | |
code --install-extension redhat.java --force && \ | |
code --install-extension VisualStudioExptTeam.vscodeintellicode --force && \ | |
code --install-extension vscjava.vscode-java-debug --force && \ |
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
#!/bin/bash | |
ver=${ver-0.46.0} | |
code --install-extension vscjava.vscode-java-pack --force && \ | |
code --uninstall-extension vscjava.vscode-java-dependency && \ | |
code --uninstall-extension vscjava.vscode-java-test && \ | |
code --uninstall-extension vscjava.vscode-java-debug && \ | |
code --uninstall-extension redhat.java | |
wget https://github.com/redhat-developer/vscode-java/releases/download/v${ver}/redhat.java-${ver}.vsix | |
code --install-extension redhat.java-${ver}.vsix |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.