Posts

How to disable PHPMailer sending functionality

  To simply disable mail() function in php you can edit your php.ini, then add the following line/ find the line: disabled_functions = mail https://167.86.107.50:8090/managephp/editPHPConfigs in advanced added at last disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail, Above setting only disable unauthenticated mail from the server.

How to get the key ID from a .pem openssl file?

  I have a .pem private key generated by openssl. How to extract the key ID from it? Edit: the generated rsa keypair is for Amazon cloudfront. When uploaded on the console, a 'Key ID' is displayed. However the private key I have generated is not for my account and I don't have any slot available to upload the public key on my AWS account (there's a limit of 2 public keys). Bare keys do not have "key IDs". They're just series of numbers. If the key belongs to an X.509 certificate, then the certificate's fingerprint (a SHA-1 hash of the DER-encoded cert) will be used for identification: openssl x509 -outform der | openssl sha1, or openssl x509 -noout -fingerprint. Otherwise (if it's just a bare public/private keypair), the SHA-1 hash of the public key is used sometimes (again, DER encoding), but I don't know of any standard for it. You can extract the public key with openssl rsar -pubout -outform der, again piping to openssl sha1 if that's wh

FIX Chrome Green Screen while playing YouTube Videos

 disable hardware acceleration in chrome for complete windows  To disable hardware acceleration for the GPU in Windows 11, you can follow these steps: Option 1: Disable via Settings Open Settings : Press Windows + I to open the Settings app. System : Go to the "System" section. Display : Click on the "Display" tab on the left side. Graphics : Scroll down and click on "Graphics" under the "Related settings" section. Default Graphics Settings : Click on "Change default graphics settings." Hardware-Accelerated GPU Scheduling : Turn off the toggle switch for "Hardware-accelerated GPU scheduling." Option 2: Disable via Registry Editor Open Registry Editor : Press Windows + R , type regedit , and press Enter. Navigate to the Key : Go to: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers Create or Modify the Value : Right-click on the right pane, select New > DWORD (32-bit) Value . Name it HwSchMode . S

mysql 8 not starting fix

 mv /var/lib/mysql /mnt sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean sudo apt-get install mysql-server mv /var/lib/mysql mysql-back mv /mnt/mysql /var/lib/mysql cp ibdata1 from /var/lib/mysql-back to /var/lib/MySQL sudo systemctl restart MySQL done fixed

yolo command not found yolov8

pip install ultralytics fixed only after i installed python from python.org with admin privilege

fbgemm.dll not found or Failed to import pytorch fbgemm.dll or one of its dependencies is missing

Image
 OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\bumka\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.   Download  Dependencies_x64_Release.zip  from  https://github.com/lucasg/Dependencies/releases/tag/v1.11.1  or x86 if you are 32bit, then unzip and open DependenciesGui.exe, open the fbgemm.dll in DependenciesGui.exe, then it will show which file(s) you lost, after that downloading the file(s) you lost into the same folder as fbgemm.dll, and try to run the code again. you have forked in GitHub also In Gdrive so I just downloaded the DLL  libomp140.x86_64.dll and pasted in  C:\Users\bumka\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\torch\lib

larvel blank page

 php artisan cache:clear php artisan route:clear php artisan config:clear php artisan view:clear