This file contains hidden or 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 net.sk.base; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.InputStream; | |
| import java.math.BigDecimal; | |
| import java.math.RoundingMode; | |
| import java.net.URL; | |
| /** | |
| * @author sam.fan | |
| */ |
This file contains hidden or 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
| -- Creates an index if it does not already exist in MySQL. | |
| -- Code by RolandoMySQLDBA, minor modifications by Adam Matan. | |
| -- License: CC BY-SA, http://creativecommons.org/licenses/by-sa/3.0/ | |
| -- Source: http://dba.stackexchange.com/questions/24531/mysql-create-index-if-not-exists/24541#24541 | |
| DELIMITER $$ | |
| DROP PROCEDURE IF EXISTS `pixels`.`CreateIndex` $$ | |
| CREATE PROCEDURE `pixels`.`CreateIndex` |
This file contains hidden or 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
| version: '2' | |
| services: | |
| rancher: | |
| image: rancher/server | |
| container_name: rancher-server | |
| restart: always | |
| nginx: | |
| image: nginx:1.11 | |
| volumes: |
This file contains hidden or 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
| #!/usr/bin/python | |
| import os | |
| import sys | |
| import requests | |
| schema_registry_url = sys.argv[1] | |
| topic = sys.argv[2] | |
| schema_file = sys.argv[3] |