What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-22 16:40:04
change main root directory cpanel
1. access server terminal. using SSH or whatever you now 2. type "sudo su" in terminal to enter root access 3. $ sudo nano /var/cpanel/userdata/CPANEL_USERNAME/DOMAIN.COM 4. find following lines: documentroot: /home/USERNAME/public_html path:... Add solution -
PHP 2022-03-22 13:50:16
laravel forgot password example
1. Simple Method : Auth::routes(['reset' => false]); 2. If that doesnt work, in ForgotPasswordController, you will see that a trait SendsPasswordResetEmails is used, in that you will find the function showLinkRequestForm which you can over... Add solution -
Python 2022-03-20 04:15:21
python ssh library
#ssh client in python example pip install paramiko client = paramiko.SSHClient() client.load_system_host_keys() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(server,port,username,password) dir = directory command = command #... Add solution -
Python 2022-03-20 02:00:04
shell command python
import subprocess subprocess.run(["bash", "testShell.sh"]) #we don't have to give full path to the shell script. It always execute from the current directory #As a rule of thumb, you need to separate the arguments based on space, #fo... Add solution