MacOS SSH Error ‘No Matching Exchange Method Found’

if you face this issue on your mac when trying to connect through SSH:
No Matching Exchange Method Found

…then you have to enable SHA1 in your OpenSSH on MacOS:

sudo vim /etc/ssh/ssh_config

1. uncomment these lines (remove the # at the beginning of the line):

#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,hmac-sha2-256,umac-64@openssh.com,hmac-ripemd160

2. and add these lines at the end of the file:

HostkeyAlgorithms ssh-dss,ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1

In the end, it should look like this:

npm Warning deep imports

Warning: Entry point XXX contains deep imports into YYY. This is probably not a problem, but may cause the compilation of entry points to be out of order.

https://github.com/angular/angular/issues/35615#issuecomment-592253747

Steps to silence the warning:

  1. Update to Angular 9.0.4
  2. Create a file named ‘ngcc.config.js’ at your top-level project folder
module.exports = {
packages: {
'angular2-text-mask': {
ignorableDeepImportMatchers: [
/text-mask-core\//,
]
},
},
};
  1. Enjoy a peaceful build

mysql docker creating dump

https://hub.docker.com/_/mysql

create mysql dump:
docker exec CONTAINER_NAME sh -c 'exec mysqldump --all-databases -uUSER_NAME -p"PASSWORD"' > /tmp/all-databases.sql

example:
docker exec mysql-container sh -c 'exec mysqldump --all-databases -uroot -p"testpasswordforroot"' > /tmp/all-databases.sql

restore dump:
docker exec -i CONTAINER_NAME sh -c 'exec mysql -uUSER_NAME -p"PASSWORD"' < /tmp/all-databases.sql

example:
docker exec -i mysql-container sh -c 'exec mysql -uroot -p"testpasswordforroot"' < /tmp/all-databases.sql

Linux command to check disk space

Amount of disk space used and available on file system:
df -h
-h – human-readable format. Print sizes in powers of 1024 (e.g., 1023M)

Amount of disk space used by the specified files and for each subdirectory
du -h
-h – human-readable format. Print sizes in powers of 1024 (e.g., 1023M)