I hereby claim:
- I am ataylor284 on github.
- I am ataylor284 (https://keybase.io/ataylor284) on keybase.
- I have a public key whose fingerprint is 981F 1299 904E BC0C EA45 CE4B BC0C 1BE0 5C34 6162
To claim this, I am signing this object:
@Grapes([ | |
@Grab(group='org.graalvm.js', module='js', version='20.1.0'), | |
@Grab(group='org.graalvm.js', module='js-scriptengine', version='20.1.0') | |
]) | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
ScriptEngine graalEngine = new ScriptEngineManager().getEngineByName("graal.js"); |
def hazelcast = container.lookup('com.hazelcast.core.HazelcastInstance') | |
def nodeConfigurationSource = container.lookup('org.sonatype.nexus.common.node.NodeConfigurationSource') | |
def nodeId = hazelcast.cluster.members[0].attributes['node.identity'] | |
nodeConfigurationSource.setFriendlyName(nodeId, "My Node") |
import groovy.json.* | |
def outputFile = new File("auditExport.json") | |
def auditStore = container.lookup("org.sonatype.nexus.audit.internal.AuditStore") | |
int pageSize = 1000 | |
int offset = 0 | |
log.info("exporting audit data to ${outputFile.getAbsolutePath()}") |
import java.nio.file.Files | |
import static groovyx.gpars.GParsPool.withPool | |
def N_PACKAGES = 100 | |
withPool { | |
(0..<N_PACKAGES).eachParallel { i -> | |
def dir = new File("package_$i") | |
dir.deleteDir() | |
dir.mkdir() |
@Grab(group='org.apache.httpcomponents', module='httpclient', version='4.5.2') | |
import org.apache.http.* | |
import org.apache.http.auth.* | |
import org.apache.http.client.* | |
import org.apache.http.client.config.* | |
import org.apache.http.client.methods.* | |
import org.apache.http.impl.auth.* | |
import org.apache.http.impl.client.* | |
import org.apache.http.util.* |
I hereby claim:
To claim this, I am signing this object:
/* | |
* Jetty with HTTP2 enabled | |
* Instructions: | |
* 1. Create keystore with `keytool -keystore http2_keystore.jks -storepass password -noprompt -genkey -keyalg RSA -keypass password -alias jetty \ | |
* -dname CN=localhost,OU=dev,O=sonatype,L=home,ST=cloud,C=US -ext SAN=DNS:localhost,IP:127.0.0.1 -ext BC=ca:true` | |
* 2. Run with: `groovy http2.groovy` | |
* 3. Confirm http2 is being used with `curl -v --http2 --insecure https://localhost:8443` | |
*/ | |
@Grapes([ |
This is a quick guide on creating using the NXRM S3 blob store with Minio's S3 implementation. Disclaimer: Using Minio with NXRM is not officially supported by Sonatype.
Follow the quick start guide here: https://github.com/minio/minio. For my testing, I started minio with docker with