This file contains 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
# Specifically JDK installations (contain 'javac' command) and not JREs: | |
yum --disablerepo=* whatprovides '*/bin/javac' | grep ilename | awk -F': ' '{print $2}' | sed 's/\/bin\/javac//' | |
# All JRE installations (those with bin/java but without bin/javac). Includes JREs that are included in JDKs. | |
for candidate in $(yum --disablerepo=* whatprovides '*/bin/java' | grep ilename | awk -F': ' '{print $2}' | sed 's/\/bin\/java//'); do | |
if [ ! -x "${candidate}/bin/javac" ]; then | |
echo "${candidate}" | |
fi | |
done |
This file contains 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
$ NAME="macOSSierra" | |
$ VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F22589C8" | |
$ VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "CK1156I6DB6" | |
$ VBoxManage modifyvm "$NAME" --paravirtprovider none | |
# after reboot: | |
$ VBoxManage modifyvm "$NAME" --paravirtprovider default |
This file contains 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
java -XshowSettings:properties -version 2>&1 | grep 'java.vendor =' | awk -F'= ' '{print $2}' |
This file contains 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
for (Provider provider : Security.getProviders()) { | |
for (def service : provider.getServices()) { | |
if (service.getType() == 'AlgorithmParameters' && service.getAlgorithm() == 'EC') { | |
String result = service.getAttribute('SupportedCurves') | |
String[] split = Strings.delimitedListToStringArray(result, '|') | |
println "supported curves: " | |
for(String s : split) { | |
String[] cleaned = Strings.delimitedListToStringArray(s, ',' ,'[]') | |
Set<String> names = io.jsonwebtoken.lang.Collections.setOf(cleaned) | |
println names.join(', ') |
OlderNewer