MySQL: Removing applied relay logs
Run:
set global relay_log_purge=1;
And flush the logs:
flush logs;
Run:
set global relay_log_purge=1;
And flush the logs:
flush logs;
openssl x509 -noout -modulus -in example.crt | openssl md5 openssl rsa -noout -modulus -in example.key | openssl md5
Should be equal.
name pptpd ms-dns 8.8.8.8 proxyarp debug lock nobsdcomp novj novjccomp nologfd nopcomp noaccomp mtu 1400 mru 1400 default-asyncmap
To start:
netsh interface portproxy add v4tov4 listenport=8080 listenaddress=0.0.0.0 connectport=80 connectaddress=127.0.0.1
And to remove:
netsh interface portproxy delete v4tov4 listenport=8080 listenaddress=0.0.0.0
You can also use:
netsh interface portproxy reset
or
netsh interface portproxy delete
to drop the forwarding. If you face some issue setting this up please refer to this.
WordPress provides handy way to get all queries and to debug them easily.
To enable queries collecting add the following in your wp-config.php:
define('SAVEQUERIES', true);
Next should be added to your theme footer (wp-content/themes/<your_theme>/footer.php)
<?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds. <?php if (current_user_can('administrator')){ global $wpdb; echo "<pre>"; print_r($wpdb->queries); echo "</pre>"; } ?>
At the end you should be able to get something like:
134 queries in 0.301 seconds.
and a bunch of SQL queries.
Names only:
rpm -qa --queryformat='%{name}\n'
With versions includes:
rpm -qa
cd /vz/template/cache ; wget https://download.openvz.org/template/precreated/centos-6-x86_64.tar.gz
vzctl create 100 --ostemplate centos-6-x86_64 --layout simfs
You can omit
--layout simfs
if you’d like to use ploop.
vzctl set 100 --hostname example.com --save
vzctl set 100 --ipadd 192.168.1.1 --save
vzctl set 100 --nameserver 8.8.4.4 --save
vzctl set 100 --nameserver 8.8.8.8 --save
And we are ready to go.
vzctl start 100
vzctl enter 100
# python >>> x = 3.1415926 >>> format(x, '.2f') '3.14'
You can get this error if you try to install lxml library:
As simple as:
yum install libxslt-devel libxml2-devel
for Centos or
apt-get install libxml2-dev libxslt1-dev
for Ubuntu.
python -m SimpleHTTPServer 8080
It will serve current directory accessible via HTTP on port 8080.