Customize Snagit toolbar and add border to it, from there you can customize things.
Add lock shortcut to MacBook with Parallels Tools
- Click Toolbox
- Gear, Preferences
- Click + to add tool
- Assign shortcut key and click Add
Maven work around to ignore all certs
Maven workaround to ignore all certs:
$ mvn install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
Replace equalsIgnoreCase with contains
Instead of this:
if ("HAV".equalsIgnoreCase(nextItinDay.getPortCode()) || "CFG".equalsIgnoreCase(nextItinDay.getPortCode())) {
You can use this:
if ( "HAV:CFG".contains( nextItinDay.getPortCode() )
Remove Extension from Mac – Such as a removed Audio Driver
Refer: https://goo.gl/dkw6X9
1. Go to Macintosh HD > System > Library > Extensions folder
2. Find SBVirtualMic.kext and move that to the trash
3. Restart the computer.
Looking for open file counts
Logon to a server and get the PID for an application
$ ps -aux | grep -i <application>
Count of Files
$ sudo lsof -a -p <PID> | wc -l
List of Files
$ sudo lsof -a -p <PID> | more
From: "Mamidi, Sundeep (Capgemini)" <SMamidi@hollandamerica.com>
Subject: RE: Splunk Alert: MLR - Secondary Flow API 500 Errors Watch
Date: August 15, 2017 at 10:38:16 AM PDT
It’s the same on p013 as well (4096).
Here’s the command :
lsof –a –p <pid> | wc –l à This gives the number of connected files
lsof –a –p <pid> à This gives the list of files that are connected
As of now, it shows around 700-750 on both servers. What I’m hoping is the file connections are being stalled on one of the servers, reaching the max connections limit. When we do a restart, it refreshes. As I said, I could increase the number of max.connections. However, that’s not the best way of handling this issue.
What possibly could happen, if we increase the max connections is, the application would consume all of those (even 10000) and give us the same error again.
There should be a bigger issue, somewhere on the backend that’s causing the stale connections. Looking at the AppD, I see some errors on hal-porta as well, at the same time.
Thanks,
Sundeep
WordPress Unable to Upload Files
Refer: https://goo.gl/iZ56R3
- Log into your WordPress admin dashboard
- Go to Media Settings menu (Settings -> Media)
- Enter wp-content/uploads in the “Store uploads in this folder” text box
- Save the changes by hitting the “Save Changes” button and you are done
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 Easier Display Preferences
"System Preferences", Display, and check both "Reduce Motion" and "Increase contrast"
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"
