google-chrome --hide-scrollbars --headless --disable-gpu --screenshot --window-size=800,600 https://google.com
view:
xdg-open screenshot.png
Monthly Archives: April 2018
php disable notice and warnings
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
clear apache logs
for i in /var/log/httpd/domains/*log; do cat /dev/null > $i; done
ssh-add Error connecting to agent: Connection refused
mv ~/.ssh/ssh-agent.localhost.localdomain.sock{,_backup}
Then you can relogin to your account and ssh-add work again. It could happen after system crash.
create cram-md5 password
doveadm pw
get wordpress version from files
grep -r wp_version wp-includes/version.php
* @global string $wp_version
$wp_version = ‘3.9.2’;
directadmin fix user quota
cd /usr/local/directadmin
echo “action=tally&value=username&type=user” >> data/task.queue
./dataskq d800
apache 2.4 ca certificate
SSLCertificateChainFile /etc/pki/tls/certs/chain.crt
sed add line after match from source file
for dom in `cat dom`; do sed -i '/\/'$dom'.db/a \\tallow-transfer {127.0.0.1;};' /etc/named.conf ; done
centos 7 apache itk
yum install httpd httpd-itk
systemd reset mysql password
systemctl set-environment MYSQLD_OPTS=”–skip-grant-tables”
WSREP: no nodes coming from prim view, prim not possible
systemctl set-environment MYSQLD_OPTS=”–wsrep-new-cluster”
service mysqld restart
lxc systemd-journald cpu load
echo "lxc.kmsg = 0" >> /usr/share/lxc/config/centos.common.conf