Posts

Showing posts from November, 2022

Digital Marketing

How to Generate a strong password with Linux command

Generate a strong password with gpg  gpg -a --gen-random 2 18 usage: gpg [options] --gen-random 0|1|2 [count]  -a, --armor                 create ascii armored output

Show Your Desktop on Windows - shortcut key

Windows+D

With GraalVM you can compile Java bytecode into a platform-specific, self-contained, native executable to achieve faster startup and smaller footprint for your application.

The Native Image functionality is not available by default, but can be easily installed with the GraalVM Updater tool: gu install native-image

GraalVM is a high-performance JDK designed to accelerate Java application performance while consuming fewer resources

GraalVM’s polyglot capabilities make it possible to mix programming languages in a single application while eliminating any foreign language call costs. GraalVM offers two ways to run Java applications: on the HotSpot JVM with Graal just-in-time (JIT) compiler or as an ahead-of-time (AOT) compiled native executable.  Besides Java, it provides runtimes for JavaScript, Ruby, Python, and a number of other popular languages. 

GraalVM is a high-performance runtime for Java and other JVM languages.

GraalVM contains a compatible JDK and offers distributions based on Java 11, and Java 17. GraalVM comes with multiple compiler optimizations, designed to accelerate Java applications performance while consuming fewer resources. 

The Software Development Kit Manager

SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates. 

How to remove all Java package on Linux

sudo rpm -qa | grep java | xargs sudo rpm -e

Tomcat declares database resources in two places

As a resource reference in your application's " WEB-INF/web.xml " file. This provides a references to your database that does not contain information specific to your servers, so that the application can easily be ported to another server environment. As a resource in your application's context element. This will direct Tomcat to create the resource when the application launches. Alternatively, if you want the database to be available to multiple applications, you can provide this information in Tomcat's server.xml file. 

Text output format of the AWS CLI

The text format organizes the AWS CLI output into tab-delimited lines. It works well with traditional Unix text tools such as grep, sed, and awk, and the text processing performed by PowerShell.

Enable visibility of hidden characters inside Vim

To temporarily enable the visibility of hidden characters, you can use the following command. :set list To reverse this change, you can hide the hidden characters again by using the command given below. :set nolist

Add a Directory to PATH in Linux

To add the directory to your $PATH type in: Example: export PATH="$HOME/bin:$PATH"

AWS SES mailbox simulator

Simulated scenario Email address Successful delivery —The recipient's email provider accepts your email. If you set up delivery notifications as described in  Setting up event notification for Amazon SES , Amazon SES sends you a delivery notification through Amazon Simple Notification Service (Amazon SNS). success@simulator.amazonses.com Bounce —The recipient's email provider rejects your email with an SMTP 550 5.1.1 ("Unknown User") response code. Amazon SES generates a bounce notification and, depending on how you set up your account, sends it to you in an email or sends a notification to an Amazon SNS topic. The mailbox simulator email address isn't placed on the Amazon SES suppression list, which would normally happen when a hard bounce occurs. The bounce response that you receive from the mailbox simulator is compliant with  RFC 3464 . For information about how to receive bounce feedback, see  Setting up event notification for Amazon SES . bounce@simulator.am

EC2 User Data Script

EC2 User Data Script is a bootstrap script to configure the instance at the first launch.  Bootstrap script launches commands when the machine starts. This User data script is only run once and when it first starts, and then will never be run again.  EC2 User Data scripts run with a root user. It is to automate boot tasks such as Install updates. Install software. Download common files from the Internet.

Create Application Menu Shortcuts On Linux

Application Menu Shortcuts – Alacarte sudo dnf install alacarte -y Or Copy existing application shortcut and edit it: sudo cp /usr/share/applications/existing-application.desktop /usr/share/applications/new-application.desktop sudo vim  /usr/share/applications/new-application.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Exec=/path/to/executable Name=Name of Application Icon=/path/to/icon

How to install Google Chrome on AWS EC2

sudo yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm