(Steps taken from: https://www.baeldung.com/x-509-authentication-in-spring-security)
All passwords: changeit
openssl req -x509 -sha256 -days 3650 -newkey rsa:4096 -keyout rootCA.key -out rootCA.crt
(Steps taken from: https://www.baeldung.com/x-509-authentication-in-spring-security)
All passwords: changeit
openssl req -x509 -sha256 -days 3650 -newkey rsa:4096 -keyout rootCA.key -out rootCA.crt
| public class App { | |
| public static void main(String[] args) throws Throwable { | |
| Logger.INSTANCE.log("started"); | |
| Logger.INSTANCE.log("hello"); | |
| foo(); | |
| Logger.INSTANCE.log("finished"); | |
| } | |
| private static void foo() { |
| #!/bin/bash | |
| #should set command alias | |
| #alias cclient="clickhouse-client -u {default or user} --password '{well-escaped-password}' " | |
| OUTDIR=. | |
| while read -r db ; do | |
| while read -r table ; do |
| #!/bin/bash | |
| # Forticlient SSL VPN Client / expect | |
| # -------------------------------------------- | |
| # CONFIGURATION | |
| FORTICLIENT_PATH="" |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| $ curl -C - https://download.java.net/java/ga/jdk11/openjdk-11_osx-x64_bin.tar.gz -O openjdk-11_osx-x64_bin.tar.gz | |
| $ tar xf openjdk-11_osx-x64_bin.tar.gz | |
| $ sudo mv jdk-11.jdk /Library/Java/JavaVirtualMachines/ | |
| $ java -version | |
| openjdk version "11" 2018-09-25 | |
| OpenJDK Runtime Environment 18.9 (build 11+28) | |
| OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode) |
| #!/usr/bin/env node | |
| import fs from 'fs' | |
| import jose from 'node-jose' | |
| import pem from 'pem' | |
| async function run () { | |
| try { | |
| // keystore to stick our node-jose keys before we do signing | |
| let keystore = jose.JWK.createKeyStore() |
Cross-Origin Resource Sharing (CORS) is a W3C spec that allows cross-domain communication from the browser. By building on top of the XMLHttpRequest object, CORS allows developers to work with the same idioms as same-domain requests.
Enable Cross Origin Resource Sharing (CORS) in the Community Dashboard Framework (CDF), Community Dashboard Editor (CDE), and Community Data Access (CDA). While you need CDE to embed the dashboard, you will access it from a different server other than the Pentaho Server, so CORS must be enabled in CDF, CDE and CDA. Open the following CDF, CDE, and CDA settings.xml files in a text editor:
server/pentaho-server/pentaho-solutions/system/pentaho-cdf/settings.xml.server/pentaho-server/pentaho-solutions/system/pentaho-cdf-dd/settings.xml.server/pentaho-server/pentaho-solutions/system/cda/settings.xml.These scripts let you run Redis in cluster mode (only for testing/dev purpose), without using the redis-trib script (written in Ruby! who wants it!?). The create-cluster has been modified to assign cluster slots after creation.