Posts

No module named 'undetected_chromedriver

Try reinstalling the module. pip install undetected-chromedriver

youtube12.com to any other url redirection

for 404 error make sure .htaccess is this  RewriteEngine On # Redirect all requests to index.php RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteRule ^(.*)$ /index.php [L] Create a new file called .htaccess and paste the above code into it. Save the file and upload it to the root directory of your website. When a user accesses any URL on your website, the .htaccess file will redirect them to index.php . Then, in the index.php file, you can use the JavaScript code mentioned in the previous response to perform the actual redirection to https://savefr0m.net/#url= followed by the current URL. <?php if (isset($_SERVER['REQUEST_URI'])) { $currentUrl = $_SERVER['REQUEST_URI']; // Extract the video ID from the current URL $videoId = $_GET['v']; // Construct the desired URL with the video ID $redirectUrl = 'https://savefr0m.net/#url=https://www.youtube.com/watch?v=' . $videoId; // Redirect to the desired URL echo '<sc...

AttributeError: 'WebDriver' object has no attribute 'find_element_by_id'

  The Selenium "AttributeError: 'WebDriver' object has no attribute 'find_element_by_id'" occurs because the   find_element_by_id   method has been deprecated and removed starting Selenium 4.3.0. Use the  find_element  method instead or downgrade your selenium version to 4.2.0. Copied! from selenium.webdriver.common.by import By # ✅ Locate a single element (New API) find_element(By.ID, "id") find_element(By.NAME, "name") find_element(By.XPATH, "xpath") find_element(By.LINK_TEXT, "link text") find_element(By.PARTIAL_LINK_TEXT, "partial link text") find_element(By.TAG_NAME, "tag name") find_element(By.CLASS_NAME, "class name") find_element(By.CSS_SELECTOR, "css selector") # ✅ Locate multiple elements (New API) find_elements(By.XPATH, '//button')

zimbra mirror

 always run with delete first for zimbra mirror when doing mirroring from another server with rsync as download #!/bin/sh Date1=`date +%d-%m-%Y` T1=`date` rsync -avz --delete root@172.16.2.22:/opt/zimbra/ /opt/zimbra/ > /home/sas/withdelete.log 2>&1 T2=`date` echo "START :  " $T1 >> /home/sas/withdelete.log echo "END   :  " $T2 >> /home/sas/withdelete.log 25 16 20 11 4 /bin/sh /home/sas/with-delete.sh &> /home/sas/withdelete.log 2>&1

How do I find my crontab file

  Cron jobs are typically located in the spool directories. They are stored in tables called crontabs. You can find them in  /var/spool/cron/crontabs . /inc5-mirror/var/spool/cron [root@mail cron]# ls root  zimbra

Reset Windows 10 Forgotten Password with USB

  Reset Windows 10 Password with USB Installation Disk If you’ve had a Windows 10 installation USB ready hand, then you can use this technique to reset the password under Windows 10. Nevertheless, you should really be aware that because this approach does not use any user interface, users will need to enter cryptic commands inside the black screen. And if you’re not tech knowledgeable and don’t feel at ease with it, there are other options. Step 1: Use the installation USB to start your Windows 10 Computer. Step 2: You’ll see only a Windows Setup page when the computer starts up. Step 3: Here, the user should not press Install on the screen. That is not what we want to accomplish. However, on the keyboard, hit Shift+F10. It will open the Command Prompt, which would be a black window. Step 4: Execute the commands indicated underneath in the black Command-Line. After you’ve typed every line, ensure to click “Enter.” move c:\windows\system32\utilman.exe c:\ copy c:\windows\system32\cm...

RHEL 8 / CentOS 8 recover root password or resuce centos 8

  Perform a break at an early stage of the boot process by typing  rd.break  at the end of the line starting with  kernel= . Once ready press  CTRL+X  to start the RHEL 8 boot process. add rd.break after quiet  mount -o remount,rw /sysroot chroot /sysroot reboot -f