Error: Access to XMLHttpRequest at ‘http://10.12.13.39:8080/content/fetchAllcontent/1/Books/Philosophy’ from origin ‘http://localhost’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Solution: Add the below code in /opt/tomcat/conf/web.xml you can replace * in cors.allowed.origins with the domain you want eg: gokuldeepak.com
WordPress – Display Ads only on posts not on pages
We may want to display ads on our WordPress website. While coming for customization we would be having many troubles. Target: To show ads only on posts and not on pages What do we need: WordPress website, Genesis Theme, Genesis Hook plugin Solution: Install Genesis Hook Plugin from the plugins repository Go to Genesis -> […]
Can’t connect to Ubuntu with SSH
Solution for SSH connection on Ubuntu system within LAN or over internet. The Linux must be listening to the port SSH and should keep firewall open.
Change Timezone in Ubuntu 20.04 – Simple method
This method to change timezone works for both Ubuntu 18.04 and Ubuntu 20.04 Shows the time of server To change, search for your timezone from the available list and copy the text Unlink the present server Timezone Now set the time zone The syntax for setting the new time zone is as below For example […]
Output for timedatectl list-timezones
Output for the timedatectl list-timezones. All the list in one place. You would be seeing a very big list and so will be difficult to sort it out and find your timezone out of it. So I have mentioned all timezone lists in this post. shortcut to find the timezones from the command itself is […]
PM2 Cheatsheet – Important Commands
PM2 Cheatsheet Commands Action pm2 start app.js Start a process pm2 start app.js -name App1 Start a process with a name pm2 start app.js -i 0 Start processes with Load Balancing Commands Action pm2 list Lists all processes pm2 jlist pm2 prettylist pm2 monit pm2 reset 0 Resets meta data – Started Time pm2 updatePM2 […]