Creating the NFS Volume:
$ docker volume create --driver local \
--opt type=nfs \
--opt o=addr=192.168.1.115,uid=1000,gid=1000,rw \
--opt device=:/mnt/volumes/mysql-test \
mysql-test-1
/** | |
* Uses Tikas {@link AutoDetectParser} to extract the text of a file. | |
* | |
* @param document | |
* @return The text content of a file | |
*/ | |
@Override | |
public String extractTextOfDocument(File file) throws Exception { | |
InputStream fileStream = new FileInputStream(file); | |
Parser parser = new AutoDetectParser(); |
// This is a minimal Base64 encode/decode utility for Nashorn -> JavaScript | |
// Add error checking for data types as needed within encode or decode | |
var Base64 = { | |
decode: function (str) { | |
return new java.lang.String(java.util.Base64.decoder.decode(str)); | |
}, | |
encode: function (str) { | |
return java.util.Base64.encoder.encodeToString(str.bytes); | |
} | |
}; |
// This will parse a delimited string into an array of | |
// arrays. The default delimiter is the comma, but this | |
// can be overriden in the second argument. | |
function CSVToArray( strData, strDelimiter ){ | |
// Check to see if the delimiter is defined. If not, | |
// then default to comma. | |
strDelimiter = (strDelimiter || ","); | |
// Create a regular expression to parse the CSV values. | |
var objPattern = new RegExp( |
https://file.io/SaFo15TRS7MM |
version: "3.4" | |
services: | |
agency: | |
image: arangodb/arangodb | |
environment: | |
- ARANGO_NO_AUTH=1 | |
command: arangod | |
--server.endpoint tcp://0.0.0.0:8529 | |
--agency.my-address tcp://agency:8529 |
version: '2' | |
services: | |
agency: | |
image: arangodb/arangodb | |
environment: | |
- ARANGO_ROOT_PASSWORD=openSesame | |
command: --server.jwt-secret=openSesameJWT --database.password openSesame --server.endpoint tcp://0.0.0.0:5001 --agency.activate true --agency.size 1 --agency.supervision true | |
coordinator: | |
image: arangodb/arangodb |
version: '3' | |
services: | |
redis: | |
image: redis | |
presidio-analyzer: | |
environment: | |
- GRPC_PORT=3000 | |
image: "mcr.microsoft.com/presidio-analyzer:latest-dev" | |
presidio-anonymizer: | |
environment: |
// Refer to: | |
// https://gist.github.com/remy/350433 | |
// https://gist.github.com/jarrodirwin/0ce4c0888336b533b2c4 | |
try { | |
// Test webstorage existence. | |
if (!window.localStorage || !window.sessionStorage) throw "exception"; | |
// Test webstorage accessibility - Needed for Safari private browsing. | |
localStorage.setItem('storage_test', 1); | |
localStorage.removeItem('storage_test'); |
👍 :+1: | |
👎 :-1: | |
:0: :0: | |
:1: :1: | |
:2: :2: | |
:3: :3: | |
:4: :4: | |
:5: :5: | |
:6: :6: | |
:7: :7: |