Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and
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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
labels: | |
app.kubernetes.io/instance: ingress-nginx | |
app.kubernetes.io/name: ingress-nginx | |
name: ingress-nginx | |
--- | |
apiVersion: v1 |
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
## Bank Mandiri KSQL POT | |
### Download the MySQL Driver | |
`curl -k -SL "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.17.tar.gz" | tar -xzf - -C /Users/victor/desktop/mandiri-ksql-pot/mysql-driver --strip-components=1 mysql-connector-java-8.0.17/mysql-connector-java-8.0.17-bin.jar` | |
### Deploy Confluent Platform using Docker | |
`docker-compose up --build` | |
### Deploy Customer Source Kafka Connector | |
`curl --silent --request POST http://localhost:8083/connectors/ --header 'Content-Type: application/json' --data @source-connector-configs/mysql_customer_source_connector_config.json` |
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
import logging | |
import click | |
import os | |
import posixpath | |
from mlflow.models import Model | |
from mlflow.models.flavor_backend_registry import get_flavor_backend | |
from mlflow.tracking.artifact_utils import _download_artifact_from_uri | |
from mlflow.utils.file_utils import TempDir | |
from mlflow.utils import cli_args |
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
apply plugin: 'java' | |
apply plugin: 'gradle-one-jar' | |
apply plugin: 'application' | |
// Use Java 8 by default | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
version = '1.0' | |
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' |
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
file_export_version=3.0 | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.keyword.enabled=true | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.link.enabled=true | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.tag.enabled=true | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.SelectionForeground.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.SelectionBackground.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.Background.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.Foreground.SystemDefault=false | |
/instance/org.epic.perleditor/AbstractTextEditor.Color.Background.SystemDefault=false | |
/instance/org.epic.perleditor/AbstractTextEditor.Color.Foreground.SystemDefault=false |
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
// Validate IMEI numbers. | |
$('#RequestProofOfPurchaseFloorStockForm').find('.imei').each(function() { | |
var pattern = /^(?!\b(.)\1+\b)\d{15}$/gi; | |
if(pattern.test($(this).val()) == false) { | |
validate = false; | |
$(this).addClass('err'); | |
$(this).parent().find('label').addClass('err'); | |
} | |
}); |
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
CONCAT('DS', LPAD(store_code, 4, 0)); |
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
CREATE FUNCTION ucfirst(x varchar(255)) returns varchar(255) | |
return concat( upper(substring(x,1,1)),lower(substring(x,2)) ); |
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
CREATE FUNCTION substrCount(x varchar(255), delim varchar(12)) returns int | |
return (length(x)-length(REPLACE(x, delim, '')))/length(delim); |
NewerOlder