Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
| @ControllerAdvice | |
| public class NotFoundHandler { | |
| @Value("${spa.default-file}") | |
| String defaultFile; | |
| @ExceptionHandler(NoHandlerFoundException.class) | |
| public ResponseEntity<String> renderDefaultPage() { | |
| try { | |
| File indexFile = ResourceUtils.getFile(defaultFile); | |
| FileInputStream inputStream = new FileInputStream(indexFile); |
| import java.net.URI; | |
| import java.util.Map; | |
| import javax.net.ssl.HostnameVerifier; | |
| import javax.net.ssl.SSLContext; | |
| import javax.ws.rs.client.Client; | |
| import javax.ws.rs.client.Invocation; | |
| import javax.ws.rs.client.WebTarget; | |
| import javax.ws.rs.core.Configuration; |
| ### Script to install xquartz and set the DISPLAY variable correctly, find the listen port and add current ip to connect to X11. | |
| #skip if you want, install xquartz | |
| brew cask reinstall xquartz | |
| #get ip | |
| IP=$(ifconfig|grep -E inet.*broad|awk '{ print $2; }') | |
| #open XQuartz | |
| open -a XQuartz & | |
| #Go to preference Security check allow network, restart : | |
| read -p "Go to preference Security check allow network and press a key to continue" |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
Image grabbed from ElasticCloudApps.com
/opt/activemq/apache-activemq-5.13.4 (We call this ACTIVEMQ_HOME from now on)| defmodule Config do | |
| @moduledoc """ | |
| This module handles fetching values from the config with some additional niceties | |
| """ | |
| @doc """ | |
| Fetches a value from the config, or from the environment if {:system, "VAR"} | |
| is provided. | |
| An optional default value can be provided if desired. |