Novalia – D’improvviso
A heard on Boiler Room 3AM Eternal Part Two: Vladimir Ivkovic (18min)
A heard on Boiler Room 3AM Eternal Part Two: Vladimir Ivkovic (18min)

icinga2 feature enable command service icinga2 restart
This is how I’v solved it
chmod +s /bin/ping
as seen on https://github.com/bodsch/docker-icinga2/issues/46
yum install https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm

yum install icinga2 systemctl enable icinga2 systemctl start icinga2
yum install nagios-plugins-all
After this install you might have to reboot the server to ensure gnutls are properly updated.

Check SELinux status
sestatus
Install icinca SELinux policy
yum install icinga2-selinux
Nano Syntax Highlighting
yum install nano-icinga2
yum install mariadb-server mariadb systemctl enable mariadb systemctl start mariadb mysql_secure_installation
CREATE DATABASE icinga; GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'passswwwwooorrrddd'; quit
mysql -u root -p icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
Edit mysql confs
nano /etc/icinga2/features-available/ido-mysql.conf
Enable ido mysql
icinga2 feature enable ido-mysql systemctl restart icinga2
yum install httpd systemctl enable httpd systemctl start httpd
(falta firewall / iptables)
icinga2 api setup
It creates the root user & a auto-generated password
nano /etc/icinga2/conf.d/api-users.conf
nano /etc/icinga2/conf.d/api-users.conf
Add the following code – be sure you change the password from this example
object ApiUser "icingaweb2" {
password = "PASSSSSSWOOORDDDDD"
permissions = [ "status/query", "actions/*", "objects/modify/*", "objects/query/*" ]
}
yum install centos-release-scl
yum install icingaweb2 icingacli
systemctl start rh-php71-php-fpm.service systemctl enable rh-php71-php-fpm.service
icingacli setup token create
service httpd restart
You should be able to access icinga web 2, using your server ip address and /icingaweb2/

Setup token was previously generated, and you can see it using
icingacli setup token show

chcon -R -t httpd_sys_rw_content_t /etc/icingaweb2/

You are using (probably) database icinga.
You need to create a new database (for example icinga_web2) with the proper user permissions,
User icinga (first table created) for Monitoring IDO Resource


You can find the mysql.schema.sql at https://github.com/Icinga/icingaweb2/blob/master/etc/schema/mysql.schema.sql.
You can download and import the file to that location… or import through mysql.

PHP Fatal error: Uncaught Error: Class ‘SoapClient’ not found in
CentOS
yum install php-soap
service httpd restart
As heard (at 33bpm) on Vladimir Ivkovic at Strange Sounds From Beyond 2018 (13min)

Lets open chrome://net-internals/#dns
As heard on Video Club Podcast 035 – Interstellar Funk & Intergalactic Gary

So, if we need to hide shipping, if the buyer has some item of specific shipping class, in this case ‘recolha-em-armazem’, we can use this code, on functions.php of our theme.
// Replace 'shipping-class' with the specific shipping class you want to force the local pick up upon
// To make it more readable, replace $shippingClass with your class name, eg : $hugeProducts
function my_hide_shipping_when_local_is_available( $rates ) {
$cart_items = WC()->cart->get_cart();
$shippingClass = false;
foreach ( $cart_items as $cart_item ) {
$product = $cart_item['data'];
$class = $product->get_shipping_class();
if ( 'recolha-em-armazem' == $class ) {
$shippingClass = true;
}
}
$local = array();
foreach ( $rates as $rate_id => $rate ) {
if ('local_pickup' === $rate->method_id ) {
$local[ $rate_id ] = $rate;
}
}
if ( !empty($local) && ($shippingClass == true) ) {
return $local;
} else {
return $rates;
}
}
add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_local_is_available', 100 );
As seen on https://gist.github.com/kane-c/5e4d53601564ed667fb9
I had to create a custom js code to select the shipping method, ’cause buyer wasn’t able to select the shipping method… this snippet might not be need… or u need to tweak it a little bit…
jQuery(document).ready(function( $ ){
if ( $('#shipping_method li').length == 1 )
{
setInterval(function() {
jQuery('#shipping_method_0_local_pickup3').clone().attr('type','radio').insertAfter('#shipping_method_0_local_pickup3').prev().remove();
jQuery('#shipping_method_0_local_pickup3').attr('checked',true);
jQuery('p.woocommerce-shipping-destination').hide();
jQuery('form.woocommerce-shipping-calculator').hide();
}, 500);
}