Swagger UI is a visual interface for viewing and interacting with RESTful APIs described using the OpenAPI Specification. To open a local JSON file in Swagger UI, we need to use a local HTTP server to serve the file and make it accessible to the Swagger UI interface. Any HTTP Server should work. In this…
PRODUCTIVITY
Whenever I migrate my WordPress site, I manually export and import the data, images, plugins, settings, etc. This time I have decided to use the All-in-One WP Migration plugin. After exporting the data, images, plugins, settings using the All-in-One WP Migration plugin from the current site, I went to my new WordPress site and try…
Below I have some useful commands to view/modify the shell in Mac or Linux. View all available shells View the current shell Change the current shell to zsh We should restart the terminal after executing the above command for the new shell to take effect. In the chsh -s we can pass any one of…
I have been playing around settings in the iTerm2 preferences to customize according to my needs, instead of creating a new profile I have made the changes to default profile itself. I want to reset all the changes I have made and start the fresh with default profile again. Using below two commands, we can…
Follow the below steps to delete all the lines in a file (emptying file) using VI / VIM editor. Open the file vi <file-name> Press gg, this will move the cursor to the first line of the file. Now press dG, this deletes all the lines. Finally, type :wq to save the changes and exit from the…