This file contains hidden or 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
qemu-img convert -O vdi gnome.qcow2 gnome.vdi | |
#if its a raw image then: | |
VBoxManage convertdd opnstk.raw VBox.vdi --format VDI |
This file contains hidden or 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
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
This file contains hidden or 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
import com.eviware.soapui.support.types.StringToStringsMap | |
def authSucceeded = false | |
// Add those custom properties to your mock server | |
def user = mockRunner.mockService.getPropertyValue("httpUsername") | |
def pass = mockRunner.mockService.getPropertyValue("httpPassword") | |
log.info "checking for credentials: $user:$pass" | |
// get the request headers | |
StringToStringsMap headers = mockRequest.getRequestHeaders() |
This file contains hidden or 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
My DNS stopped working after upgrading from 16.04 to 18.04. | |
The solution that worked was to change | |
dns=dnsmasq | |
to | |
dns=systemd-resolved | |
in /etc/NetworkManager/NetworkManager.conf | |
Then restart NetworkManager by running: |
This file contains hidden or 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
<html> | |
<head> | |
<title>Midtier redirect</title> | |
<meta http-equiv="refresh" content="0; URL=/arsys"> | |
<meta name="keywords" content="automatic redirection"> | |
</head> | |
<body> | |
If your browser doesn't redirect within a few seconds, click <a href="/arsys">here.</a> | |
</body> | |
</html> |
This file contains hidden or 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
# set environment for WAR deployed ARSystem Midtier and PSI-Probe webapp | |
JAVA_HOME=/opt/java-jre ; export JAVA_HOME | |
JRE_HOME=/opt/java-jre; export JRE_HOME | |
# AR Midtier optimizations | |
JAVA_OPTS="$JAVA_OPTS -Xms1024m"; export JAVA_OPTS | |
JAVA_OPTS="$JAVA_OPTS -Xmx2048m"; export JAVA_OPTS | |
JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=512m"; export JAVA_OPTS | |
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"; export JAVA_OPTS | |
JAVA_OPTS="$JAVA_OPTS -XX:+UseCompressedOops"; export JAVA_OPTS |
This file contains hidden or 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
Use Java keytool to convert from JKS to P12... | |
Export from keytool's proprietary format (called "JKS") to standardized format PKCS #12: | |
keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12 -deststoretype PKCS12 -srcalias <jkskeyalias> -deststorepass <password> -destkeypass <password> | |
...then use openssl to export from P12 to PEM | |
Export certificate using openssl: |
This file contains hidden or 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
# nginx BMC Remedy Mid Tier server configuration | |
server { | |
# Redirect 2 HTTPS | |
listen 80; | |
server_name _; | |
access_log off; | |
return 301 https://$host/arsys; | |
} | |
# Upstream of tomcat - needs IP and Port of tomcat |
This file contains hidden or 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
# nginx BMC Remedy Mid Tier server configuration | |
server { | |
# Redirect 2 HTTPS | |
listen 80; | |
server_name _; | |
access_log off; | |
return 301 https://$host/arsys; | |
} | |
# Upstream of tomcat |
This file contains hidden or 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
# Systemd unit file for BMC ARSystem | |
[Unit] | |
Description=AR System service | |
After=network.target | |
Requires=oracle-xe.service rpcbind.service | |
[Service] | |
Type=forking | |
ExecStart=/opt/bmc/ARSystem/bin/arsystem start | |
ExecStop=/opt/bmc/ARSystem/bin/arsystem stop |