Thursday, September 14, 2023

Replace the text before the second occurrence of "-"

 To replace the text before the second "-" in Notepad++, you can use the following regular expression:


Find: `^.*?-(.*?)-`


Replace with: `Your Replacement Text-`


Explanation:


- `^` : Matches the start of the line.

- `.*?` : Matches any characters lazily (non-greedy) before the first "-".

- `-(.*?)-` : Matches the first "-" followed by any characters lazily (non-greedy) until the second "-", capturing the characters in between.


The replace expression replaces the matched text with the desired replacement followed by a "-". 


Make sure to enable the "Regular expression" search mode in Notepad++ before using this expression.

Friday, September 8, 2023

PGP Encryption for Files

 PGP (Pretty Good Privacy) is a popular program that encrypts and decrypts email and files. It also authenticates messages with digital signatures. PGP is a widely used standard for protecting sensitive information and verifying the sender of files.


https://pgptool.github.io/








Friday, September 1, 2023

AWS Apps; Create Listener to be called from external network

 EC2->Load balancer->links

Cloud Watch for logs

Client Secrets -> To get DB credentials

Lambda ->Make sure right Data Center is selected

Add Listener for Lambda to be called from external network.