Thursday, June 17, 2021
EBS vs EFS - AWS - Elastic Block Storage vs Elastic File System
https://aws.amazon.com/getting-started/tutorials/create-network-file-system/
EBS --------> 1 EC2 Instance is mapped to EBS - Block Level Storage
EFS ----------> Multiple EC2 Instances - Mounted to this File System - Common across multiple Apps
The main differences between EBS and EFS is that EBS is only accessible from a single EC2 instance in your particular AWS region, while EFS allows you to mount the file system across multiple regions and instances.
S3 --> S3 is Object Level storage. S3 is not limited to EC2, Its linked to CloudFront through which many Media etc are hosted there.
Monday, June 14, 2021
IPTABLES, Firewall, Actual Firewall + Security Group - AWS
https://www.tecmint.com/fix-no-route-to-host-ssh-error-in-linux/
https://www.cyberciti.biz/faq/how-to-list-all-iptables-rules-in-linux/
sudo nmap -p 6900,25,22,8080,21000,7856,9084 10.79.197.70
sudo iptables -S
sudo nmap -p 6900,25,22,8080,21000,7856,9084 10.79.197.70
sudo iptables -D IN_public_allow -p tcp -m tcp --dport 7856 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
sudo iptables -A IN_public_allow -p tcp -m tcp --dport 7856 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
Sunday, June 13, 2021
Zscaler Private Access (ZPA) , CHATTR Linux, Immuable, VPC -> PrefixList
https://aws.amazon.com/marketplace/pp/prodview-epy3md7fcvk4g?ref=cns_srchrow
https://www.fugue.co/blog/cloud-network-security-101-aws-security-groups-vs-nacls
https://www.javatpoint.com/aws-nacl-vs-security-group
https://mylearningsonline.com/aws-services/aws-vpc-security-group-nacl/
https://www.davidc.net/sites/default/subnets/subnets.html
https://www.baeldung.com/linux/grep-sed-awk-differences#1-basic-syntax-1
chattr +i [To make it immutable, Its not related to access permissions] - Change Attribute
SetUserBit
SetGroupBit chmod 2775 chmod +ug rw
which Which executable
whereis
https://stackoverflow.com/questions/39239276/how-to-enable-a-directory-listing-in-apache-web-server
Saturday, June 5, 2021
Azure Pipelines, YAML Schema
Thursday, June 3, 2021
XARGS AWK CUT GREP
ls -l . | grep ^d | awk '{print $9}' | xargs rm -rf
ls -al | grep -E '^-.*ml'
ls -l | grep -E '^-.*ml' | awk '{print $9}' |xargs rm -f
https://www.thegeekstuff.com/2011/10/grep-or-and-not-operators/
https://stackoverflow.com/questions/219402/what-linux-shell-command-returns-a-part-of-a-string
Linux Pending A-Z ::: Sudoers :: Login Shell : Non Login Shell :: Grep Regex :: Alias
sudo visudo
source /etc/sudoers
To put it very simple, it is “who where = (as_whom) what”.
https://medium.com/kernel-space/linux-fundamentals-a-to-z-of-a-sudoers-file-a5da99a30e7f
coraca ALL=ALL:ALL /usr/bin/cat /etc/shadow
https://www.hostinger.in/tutorials/sudo-and-the-sudoers-file/
https://phpraxis.wordpress.com/2016/09/27/enable-sudo-without-password-in-ubuntudebian/
kk ALL=(ALL) NOPASSWD: ALL
user1 ALL=NOPASSWD: /bin/systemctl start vsts, /bin/systemctl stop vsts, /bin/systemctl restart vsts, /bin/systemctl status vsts
Using /etc/sudoers.d #
Instead of editing the sudoers file you can create a new file with the authorization rules in the /etc/sudoers.d directory.
https://www.garron.me/en/linux/visudo-command-sudoers-file-sudo-default-editor.html
https://www.linux.com/training-tutorials/configuring-linux-sudoers-file/
https://toroid.org/sudoers-syntax
https://medium.com/kernel-space/linux-fundamentals-a-to-z-of-a-sudoers-file-a5da99a30e7f
http://www.softpanorama.org/Access_control/Sudo/sudoer_file_examples.shtml
http://www.freekb.net/Article?id=269
https://www.hostinger.in/tutorials/sudo-and-the-sudoers-file/
https://www.tecmint.com/create-alias-in-linux/
https://linuxize.com/post/linux-xargs-command/
https://shapeshed.com/unix-xargs/
https://www.geeksforgeeks.org/alias-command-in-linux-with-examples/
https://www.techrepublic.com/article/linux-101-the-different-types-of-sudo-and-su/
https://www.blogger.com/u/1/blog/posts/2528866210673694202
https://unix.stackexchange.com/questions/38175/difference-between-login-shell-and-non-login-shell
https://linuxhint.com/list-only-files-not-directories/
https://medium.com/@rajsek/zsh-bash-startup-files-loading-order-bashrc-zshrc-etc-e30045652f2e
https://www3.ntu.edu.sg/home/ehchua/programming/howto/Regexe.html
https://askubuntu.com/questions/815066/whats-the-difference-between-bashrc-and-etc-bash-bashrc
Azure - Pipeline - Add Approver for Stage
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
https://www.baeldung.com/spring-properties-file-outside-jar https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-featu...
-
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
The decision was made to block such external HTTP repositories by default https://stackoverflow.com/questions/66980047/maven-build-failure-d...