• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gokul Deepak

Gokul Deepak

GoCool and Debug

  • Home
  • WordPress
  • Android
  • How to
  • About Me

Gokul Deepak S

CORS error in Apache Tomcat – Solved

June 23, 2021 by Gokul Deepak S Leave a Comment

Apache Tomcat

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

Filed Under: DevOps Tagged With: Tomcat

WordPress – Display Ads only on posts not on pages

June 15, 2021 by Gokul Deepak S Leave a Comment

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 -> […]

Filed Under: Wordpress

Can’t connect to Ubuntu with SSH

October 13, 2020 by Gokul Deepak S Leave a Comment

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.

Filed Under: Ubuntu

Change Timezone in Ubuntu 20.04 – Simple method

October 12, 2020 by Gokul Deepak S 1 Comment

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 […]

Filed Under: Ubuntu

Output for timedatectl list-timezones

October 12, 2020 by Gokul Deepak S Leave a Comment

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 […]

Filed Under: Ubuntu

PM2 Cheatsheet – Important Commands

October 12, 2020 by Gokul Deepak S Leave a Comment

PM2-Cheatsheet-all-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 […]

Filed Under: Node JS

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 10
  • Go to Next Page »

Primary Sidebar

Popular Pages

  • How to find the date of the Facebook group it was created
  • Home
  • How to block access to the wp-content uploads folder
  • Can't connect to Ubuntu with SSH
  • Combine two separate files line by line in Notepad++
  • CORS error in Apache Tomcat - Solved
  • How to remove Linux OS in Tamilnadu Government Free Laptop
  • How to add ads.txt on Bluehost
  • Cloudflare SSL off vs Flexible Vs Full vs Full Strict
  • Elementor Plugin and Nginx Configuration

Archives

Categories

  • Android
  • Apache
  • Blogger
  • Computer Tips
  • DevOps
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Node JS
  • Notepad++
  • PostgresQL
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Tomcat Wordpress plugin

Copyright © 2022 ยท Maintained by GokulDeepak