Posts

Showing posts from January, 2023

Access to XMLHttpRequest at 'https://api.krishit.com/navbar/checkforNavbar' from origin 'https://hrms.krishit.com' 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.

 Access to XMLHttpRequest at 'https://api.krishit.com/navbar/checkforNavbar' from origin 'https://hrms.krishit.com' 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. nodejs was not running and thats why giving this error pm2 start app.js from hrms folder

hrms.krisit.com

 hrms.krishit.com running nodejs start pm2 start app.js  api.krishit.com running as a domain to access api using this domain as reverse proxy using apache2  vms.krishit.com running springboot

wp automatic license

change in  p_license.php $resarr=json_decode($resback); $resarr->message = 'success'; // this line needs to be added on 72 if(isset($resarr->message)){ $wp_automatic_active_message=$resarr->message; 4308eedb-1add-43a9-bbba-6f5d5aa6b8ee key root@server:/home/urlshort.in/public_html/public/urlshortener/wp-content/plugins/wp-automatic# egrep -Rw * -e "resarr" p_license.php:                          @$resarr=json_decode($resback); p_license.php:                          if(isset($resarr->message)){ p_license.php:                                  $wp_pinterest_active_message=$resarr->message; p_license.php:                                  if(isset($resarr->error)){

install gui on ubuntu

apt-get update   sudo apt install ubuntu-desktop Xrdp on Ubuntu 20.04  installed Ubuntu 20.04 and then installed xrdp. Whenever i tried to connect, either from another Ubuntu 20.04 box using either xfreerdp or krdc, or from a Mac, a black screen would show up, and then immediately disconnect. i made sure i did not have any other sessions on the server going on at the same time. 4 1. Remove previously installed xrdp: $ sudo systemctl disable xrdp $ sudo systemctl stop xrdp $ sudo apt purge xrdp $ sudo apt purge xserver-xorg-core $ sudo apt purge xserver-xorg-input-all $ sudo apt purge xorgxrdp 2. Re-install xrdp & required packages: $ sudo apt install xrdp $ sudo apt install xserver-xorg-core $ sudo apt install xserver-xorg-input-all $ sudo apt install xorgxrdp i installed xrdp and xorgxrdp from deb files from google and worked You also need to grant access to the  /etc/ssl/private/ssl-cert-snakeoil.key  file for  xrdp  user. It is available to members of the  ssl-cert  group by de

How to remove Glance ads for realme 8 Pro

  To remove Glance for realme 8 Pro follow below steps: Go to settings > Home screen, Lock screen & Always-On display > (now look for Glance for realme) > Turn off. I hope this helps, Glance is very irritating!

zimbra single mail id restore

info@kaybouvet.com for backup mkdir info /opt/zimbra/bin/zmmailbox -z -m info@kaybouvet.com getRestURL '/?fmt=tgz' > info@kaybouvet.com.tgz Restoration for a single account /opt/zimbra/bin/zmmailbox -z -m info@kaybouvet.com postRestURL "//?fmt=tgz&resolve=skip" info@kaybouvet.com.tgz  cpkulkarni@kaybouvet.com for email in `cat /mnt/cpkulkarni/emails.txt`; do  /opt/zimbra/bin/zmmailbox -z -m $email getRestURL '/?fmt=tgz' > $email.tgz ;  echo $email ; done for i in `cat /mnt/cpkulkarni/emails.txt`; do /opt/zimbra/bin/zmmailbox -z -m $i postRestURL "/?fmt=tgz&resolve=skip" /mnt/cpkulkarni/$i.tgz ;  echo "$i -- finished "; done

php redirect to another website on form submit

  <form method="POST" action="https://cloudcertification.io/workday-training/">      <button class="mt-4 btn btn-primary btn-block me-4"  id="downloadBtn">                             Download                        </button>                         <button class="mt-4 btn btn-secondary btn-block me-4"                                 id="pasteBtn">Paste from clipboard                        </button> to  below <input class="mt-4 btn btn-primary btn-block me-4" id="downloadBtn" type="submit" name="Download" value="Download"> if isset name is download that us use in input  if(isset($_POST['Download'])){ <?php if(isset($_POST['Download'])){     $videodjd=$_POST['url']; ?> <iframe id="widgetv2Api" src="https://download.ytmp3.su/api/widgetv2?key=a0d0d2393d1b413e32a5fc26b0065492c4634b87&url=<?p

how to insert google tag code in php or anlaytics code in php

 how to insert google tag code in php or insert analytics code insert the gtag in header <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-5PPLT8JWQ2"></script> <script>   window.dataLayer = window.dataLayer || [];   function gtag(){dataLayer.push(arguments);}   gtag('js', new Date());   gtag('config', 'G-5PPLT8JWQ2'); </script> --------------------------- <!doctype html> <html class="no-js" lang="en"> <head>     <meta charset="UTF-8">     <meta name="description" content="">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">     <!-- Title  -->     <title>Online Courses </title>     <!-- Favicon  -->     <link rel="icon&

Customising the Logical Volume After Enlarging the SSD in CentOS (Cloud Server)

In this article, we'll show you how to customise the Logical Volume after increasing the size of your SSD in CentOS 7, CentOS Stream 8, and CentOS Stream 9. On cloud servers, the  Logical Volume Manager (LVM)  is used to manage storage space. The Logical Volume Manager puts a logical layer between the file system and the partitions of the datastores in use. This makes it possible to create a file system that spans multiple partitions and/or disks. In this way, the storage space of several partitions or disks can be combined. In addition, the Logical Volume Manager gives you the option to increase a logical volume on the fly. After you have increased the size of your cloud server's SSD, you must manually adjust the size of the Logical Volume. Please Note We recommend that you take a snapshot before manually adjusting the logical volume. You can use a snapshot to restore the captured state of your cloud server or virtual server. However, please note that snapshots are automatical