Showing posts from May, 2022

Digital Marketing

Increase the size of EBS volume if No space left on device

Run lsblk and then lsblk -f to get block device details sudo mount -o size=10M,rw,nodev,nosuid -t tmpfs tmpfs /tmp sudo growpart /dev/DEVICE_ID PARTITION_NUMBER lsblk to verify partition has expanded sudo resize2fs /dev/DEVICE_IDPARTITION_NUMBER Run df -h to verify your resized disk

Mental Health Resources for Children and Youth

Mental Health Resources for Children and Youth Kid's Help Phone: 1-800-668-6868 Crisis Text line: Text 'Home' to 686868 What's up walk in: Canadian Mental Health Association/ Youth Zone: Mental Health Resources for For Adults: Across Boundaries: Mental Health T.O. 1-866-585-6486, Distress Centre: 416-408-HELP (4357) Sunnybrook Family Navigation Project: General Resources to help children/youth cope with COVID-19:

Linux Port Scanning

Check what services are running on the Linux system using port scanning utilities.  These commands are sometimes used to identify open TCP ports and related services: # netstat -tulp # lsof -iTCP -sTCP:LISTEN # nmap -sTU

Create Incremental Backup in Linux

Create Full Backup first tar --verbose --verbose --create --xz --listed-incremental=/backup/data.snxz --file=/backup/data.txz data Check the backup with the following command. $ tar --list --incremental --verbose --verbose --file /backup/data.txz Create Incremental Backup tar --verbose --verbose --create --xz --listed-incremental=/backup/data.snxz --file=/backup/data1.txz data Run the following command to check the incremental backup file. $ tar --list --incremental --verbose --verbose --file /backup/data1.txz Restore Backup with Incremental Backup restore data from full backup first tar --extract  --listed-incremental=/dev/null --file data.txz restore data from incremental backup file tar --extract  --listed-incremental=/dev/null --file data1.txz

Former US President Donald Trump has paid a $110,000 fine for his failure to respond to a subpoena in a civil investigation into his business practices

Buying vs. selling options

Buying a call You have the right to buy a security at a predetermined price. Selling a call You have an obligation to deliver the security at a predetermined price to the option buyer if they exercise the option. Buying a put You have the right to sell a security at a predetermined price. Selling a put You have an obligation to buy the security at a predetermined price from the option buyer if they exercise the option.

Sweden, Finland Formally Apply to Join NATO

Ether, the second-largest digital asset, dropped 0.2% to $2,533 on Sunday.

Bitcoin is worth about half its peak value at around $34,000

Bitcoin is the largest cryptocurrency. It has lost a quarter of its value this year.

Find Files by Size on Linux

To find files based on the file size, pass the -size parameter along with the size criteria.  You can use the following suffixes to specify the file size: b: 512-byte blocks (default) c: bytes w: two-byte words k: Kilobytes M: Megabytes G: Gigabytes The following command will find all files of exactly 88 bytes inside the / directory: find / -type f -size 88c Find files larger than 88M: find / -type f -size +88M Find files smaller than 88G find / -type f -size -88G

Linux Boot Partition

On Ubuntu and other modern Linux distributions, all the files required to boot your computer is kept on different partition, called the Boot partition. The Boot partition is usually about 512MB or 256MB in size.

How to grep a gz/zip file?

zgrep invokes grep on compressed or gzipped files.  All options specified are passed directly to grep.

AWS Key Management Service or KMS enables the creation of encryption keys and controlling keys in encrypting data.

AWS Key Management Service or KMS uses envelope encryption which has a master key on top of a data key. Most noteworthy, the master key can decrypt and encrypt up to 4 KB of data.

AWS EBS encrypts your volume with a data key using the industry-standard AES-256 algorithm.

Your data key is stored on disk with your encrypted data, but not before EBS encrypts it with your KMS key. Your data key never appears on disk in plaintext. The same data key is shared by snapshots of the volume and any subsequent volumes created from those snapshots if the volumes are encrypted using the same KMS key as the snapshot.

Secure data on AWS

Use multi-factor authentication (MFA) with each account. Use SSL/TLS to communicate with AWS resources. We recommend TLS 1.3 or later. Set up API and user activity logging with AWS CloudTrail. Use AWS encryption solutions, along with all default security controls within AWS services. Use advanced managed security services such as Amazon Macie, which assists in discovering and securing personal data that is stored in Amazon S3.