Install HAL Certs for IntelliJ

Copy the HALIntellJCerts.zip (Download) to here:
/usr/lib/jvm/java-8-oracle/jre/lib/security

Trust All for Maven - When you have NO Valid Certs
mvn install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

Import certs into java keystore

# Copy the certificate into the directory Java_home\Jre\Lib\Security
# Change your directory to Java_home\Jre\Lib\Security>
# Import the certificate to a trust store.

CD to your security folder on Ubuntu
$ cd /usr/lib/jvm/java-8-oracle/jre/lib/security

Copy all the certifcates there
Downloads/Certs/AddTrustExternalCARoot.cer
Downloads/Certs/COMODOAddTrustExternalCARoot.cer
Downloads/Certs/COMODORSACertAuthority.cer
Downloads/Certs/New_Princess_COMODO_RSA_Organization_Validation_Secure_Server_CA.cer

$ keytool -import -alias comodoaddtrustexternalcaroot -file COMODOAddTrustExternalCARoot.cer -keystore cacerts -storepass changeit
$ keytool -import -alias comodorsacertauthority -file COMODORSACertAuthority.cer -keystore cacerts -storepass changeit
$ keytool -import -alias addtrustexternalca -file AddTrustExternalCARoot.cer -keystore cacerts -storepass changeit

Trust this certificate: [Yes]

Mac Java Location
echo $(/usr/libexec/java_home)
/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/Home/jre/lib/security

 

Macbook Change fn Key for F1-F12 Keys

If you prefer the top row of keys to always behave as standard function keys without holding the Fn key:

  • Choose System Preferences from the Apple menu.
  • Click Keyboard.
  • Click the Keyboard tab if it's not already highlighted.
  • Select "Use all F1, F2, etc. keys as standard function keys"

 

Sending email from command line on Linux

Refer: https://tecadmin.net/ways-to-send-email-from-linux-command-line/

$ mail -s "Test email" someone@hotmail.com < /dev/null

$ cat email.txt
<BOF>

Subject: Terminal email sent

line 1
line 2
<EOF>

$ mail -s "Test email" someone@hotmail.com < email.txt

Gnome getting window buttons back

It is not immediately obvious how to do this, with GNOME Tweak Tool having no easy-click option to move them, and many old forum answers no longer applying.

Install dconf-editor from the Software app and then navigate to org.gnome.desktop.wm.preferences.

Akamai Staging

Step 1: dig www.hollandamerica.com | grep -i edgekey
Step 2: take the edgekey value and append -staging to it and dig it again
Step 3: dig www.hollandamerica.com.edgekey-staging.net
Step 4: Use the answer section and grab the IP address, use in your hosts file
Step 5: Turn on modify headers with Akamai Pragma and look for X-Akamai-Staging

Add desktop icon for Gnome

Save the following in a file with the extension: .desktop

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=command to run here
Name=visible name here
Comment=comment here
Icon=icon path here