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
#!/usr/bin/env bash | |
LINK_FILE="$HOME/.m2/settings.xml" | |
if [ ! -L "$LINK_FILE" ]; then | |
echo "This program expects $LINK_FILE to be a symbolic link." | |
exit 1 | |
fi | |
if [ -z "$1" ]; then |
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