Coming from Windows where there's an entire set of configuration options to set Low Battery Warnings, Critical Battery Warnings and Actions, etc. I'm dismayed that macOS doesn't have any configuration at all, and only has a permanently fixed Low Battery notification at 10% and nothing else. I have made a script ( available on GitHub Gist ) that will show a warning alert like this: You can save the first file as /usr/local/bin/battcritical (without the .sh ) and if you only want it in current session, just run it with: nohup /usr/local/bin/battcritical & To have it start warning you at another percentage (and below), change the number after -le on line 11 to your desired percentage. In order to have it automatically run every time you boot up your Mac, also save the second file as /usr/local/bin/login-scripts (without the .sh ), then drag and drop the login-scripts file into the Login Items list in your System Settings. Remember to give both files the execut...
After picking up bits and pieces over the Internet, here I have the complete guide for my particular setup. My Amazon AWS Elastic Beanstalk (ELB or EBS) is as follows: 64bit Amazon Linux 2016.03 v2.1.1 running Tomcat 8 Java 8 Java/JSP application on Apache Tomcat Maven Build How to get it done: First, configure your EBS instance: Go to Configuration and click the gear on Load Balancing. Under Load Balancer, set the following options: Listener port: 80 Protocol: HTTP Secure listener port: 443 Protocol: HTTPS SSL certificate ID: Choose the cert ID that goes with your server. If you don't have one, you can use Certificate Manager to create one. Apply and save this configuration. Let the server health be OK. Test it by accessing your application web page through both HTTP and HTTPS: HTTP should load the page unsecurely. HTTPS should load the page securely. No port number should be added after the domain name in either case. Then, add a configuration file ...