The best programming blog.

Covering a wide array of programming topics.

How to check permissions of a folder in Ubuntu

Run the following command to check permissions of a folderr in Ubuntu: ls -ld /tmp You will get the output like this: drwxrwxrwt 11 root root 4096 Apr 17 05:53 /tmp In the above example /tmp is the folder for which you want to check the permissions.More

How to install zip on Ubuntu

Run the following command sudo apt-get -y install zip You will get the following output Reading package lists… Done Building dependency tree Reading state information… Done The following additional packages will be installed: unzip The following NEW packages will be installed: unzip zip 0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.…More

Error: Unable to locate executable file: ‘zip’ Azure Devops pipeline

Error: You are getting the following error while running the Azure Devops pipeline: ##[error]Error: Unable to locate executable file: ‘zip’. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable. ##[error]Unable to…More

Show hidden files on Mac

By default, hidden files on Mac are not visible in Finder. This is because they are considered system files that are not meant to be modified by users. However, there are times when you may need to access hidden files, such as when you are troubleshooting a problem with your Mac or when you are…More

Gitignore for Ionic project

You can keep the following gitignore for your Ionic project: # Specifies intentionally untracked files to ignore when using Git # http://git-scm.com/docs/gitignore *~ *.sw[mnpcod] .tmp *.tmp *.tmp.* *.sublime-project *.sublime-workspace .DS_Store Thumbs.db UserInterfaceState.xcuserstate $RECYCLE.BIN/ *.log log.txt npm-debug.log* /.idea /.ionic /.sass-cache /.sourcemaps /.versions /.vscode /coverage /dist /node_modules /platforms /plugins /wwwMore

Allow HTTP HTTPS traffic to EC2 instance in AWS

Go to EC2 instances dashboard. Select the instance and navigate to Security tab in the below pane. Click the security group linked to that instance. Click the Edit inbound rules button. On Edit inbound rules page, click Add rule button. Add HTTP (80 port) and HTTPS (443 port) rules from tghe dropdowns Saving them will…More

Install Azure Devops pool agent on Ubuntu

Go to Azure Devops dashboard. Go to Project Settings. Go to Pipelines >> Agent pools. Click Add pool button. In Add agent pool modal add the following details Pool to link: New Pool type: Self-hosted Name: <Your desired pool name> Click the pool you just created to go to the pool detail page. Click New…More

How to install Nginx on Ubuntu

Installation of Nginx will be done in three main steps: Installing Nginx. Setup firewall. Restart Nginx. Check Nginx status. Installing Nginx. Run the following commands: Setup firewall. Add the following rules: Run Restart nginx Run the following command to to restart the nginx: Check Nginx status. Run the following command to check the status: Will…More