This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define the interface name and the temporary IP address | |
INTERFACE="eth0" # Replace with the correct network interface name if it's different | |
TEMP_IP="192.168.1.100/24" # Replace with the desired temporary IP address | |
# Check for an IPv4 address on the interface | |
check_ip() { | |
ip addr show $INTERFACE | grep -q "inet " | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/******************************************************** | |
* Custom implementation of Featured Image in the builder | |
********************************************************/ | |
// Add the featured image selector to the page settings | |
add_filter('builder/settings/page/controls_data', function ($data) { | |
$data['controlGroups']['featured-image-options'] = array( | |
'title' => 'Featured image', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name mail.example.com; | |
return 301 https://mail.example.com; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name mail.example.com autodiscover.example.com; |