/usr/local/cpanel/3rdparty/bin/wp user update 1 --user_pass=New_password
Monthly Archives: June 2018
wordpress command line change site url (cli)
/usr/local/cpanel/3rdparty/bin/wp search-replace 'http://domain.lt' 'http://www.domain.lt'
Fatal resource shortage: privvmpages
lveinfo –period=1d –by-fault=mem –display-username
lvectl set USER_ID –mem=XXXXm
php command line date
php -r 'echo date("H:i:sa") . "\n";'
linux restart usb modem
lsusb
Bus 002 Device 015: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
usb_modeswitch -R -v 12d1 -p 1001
strace existing process
strace -p PID
Invalid command ‘SSLEngine’, perhaps misspelle
yum install mod_ssl
MariaDB 10 Centos 7 repo
# MariaDB 10.3 CentOS repository list – created 2018-06-19 10:42 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
linux check password validity and change time
ansible -i inv inv_file -m shell -a “chage -l root”
webcam configuration fedora
sudo dnf install gtk-v4l
Cannot open tablespace mysql/innodb_table_stats which uses space ID: 1 at filepath: ./mysql/innodb_table_stats.ibd
add innodb_force_recovery = 1
service mysql start
remove innodb_force_recovery = 1