<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/data_ssd/iso-images/ubuntu-16.04.6-server-amd64.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<boot order='1'/>
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 | |
| declare(strict_types=1); | |
| namespace ArrayIterator; | |
| /** | |
| * Class PolygonFixer | |
| * @package ArrayIterator | |
| * Like a Geo Jeon right-hand-rule Fixer based on {@link https://mapster.me/right-hand-rule-geojson-fixer/} |
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 | |
| add_filter('fluenform_rendering_field_data_address', function ($data) { | |
| $fields = $data['fields']; | |
| // You can re-arrange the fields here | |
| $data['fields'] = array_merge(array_flip(array( | |
| 'address_line_1', | |
| 'address_line_2', | |
| 'zip', |
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 | |
| add_filter('fluenform_rendering_field_data_select', function ($data, $form) { | |
| if ($form->id != 91) { | |
| return $data; | |
| } | |
| // do the dynamic part if and only the name attriibute is 'dynamic_dropdown' | |
| // Please use the corresponding field name for your case. | |
| if (\FluentForm\Framework\Helpers\ArrayHelper::get($data, 'attributes.name') != 'dynamic_dropdown') { | |
| return $data; |
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
| /* I'll put here different examples of dynamic query for Oxygen repeater : | |
| * - Use one of the following repeater_dynamic_query definitions | |
| * in code block just BEFORE the repeater | |
| * - Set the repeater custom query settings : post type, number of posts, order... | |
| * - Add the remove_action in a code block AFTER the repeater | |
| */ | |
| /**************************************************************************************************** | |
| * Display related posts for any CPT with taxonomy: |
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 | |
| # ------------------------------------------------- | |
| # Make site directory | |
| # Download WP and install WP to site directory | |
| # Set WP configuration | |
| # Configure NGINX for new domain-name | |
| # ------------------------------------------------- | |
| # apt-get update |
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
| /** | |
| * Oxy-Dummy activation (thank you Sridhar Katakam) | |
| * Paste this code snippet in your Oxygen's customization plugin | |
| * or copy the file to /wp-content/plugins/customization-plugin/ | |
| */ | |
| remove_filter( 'template', 'ct_oxygen_template_name' ); | |
| remove_filter( 'template_directory', 'ct_disable_theme_load', 1, 1 ); | |
| remove_filter( 'stylesheet_directory', 'ct_disable_theme_load', 1, 1 ); |
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 | |
| error_reporting(E_ALL); | |
| $opts = getopt('f:d:rb:', ['ext:', 'php:', 'diff::']); | |
| if ((int)isset($opts['d']) + (int)isset($opts['f']) !== 1) { | |
| $self = basename(__FILE__); | |
| echo <<<EOF | |
| Usage: | |
| php $self -f<php_script> [-b] [--php <path_to_php>] [ --diff [<file>]] |
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
| # Ubuntu 20 LTS Server Setup for Laravel | |
| # Login as root user | |
| sudo su - | |
| # Update list of available packages | |
| apt update |