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 standard autocomplete attributes to Fluent Form standard fields | |
| * to improve Chrome autofill recognition. | |
| * | |
| * @param array $field The field properties. | |
| * @param array $form The form properties. | |
| * @return array The modified field properties. | |
| */ |
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
| { | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
| nixos-wsl = { | |
| url = "github:nix-community/NixOS-WSL/main"; | |
| inputs.nixpkgs.follows = "nixpkgs"; | |
| }; | |
| vscode-server = { | |
| url = "github:nix-community/nixos-vscode-server"; | |
| inputs.nixpkgs.follows = "nixpkgs"; |
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 | |
| class SubscriptionVariationFixer { | |
| private $proposed_changes = []; | |
| private $total_items = 0; | |
| private $total_issues = 0; | |
| // Helper function to get the current site's attribute format from a variation | |
| private function get_variation_attributes($variation_id) { | |
| global $wpdb; | |
| $attributes = []; |
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
| { | |
| description = "A nixos cloudinit base image without nixos-infect"; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs"; | |
| }; | |
| outputs = { self, nixpkgs }: | |
| let | |
| system = "x86_64-linux"; |
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
| let | |
| pkgs = import <nixpkgs> {}; | |
| in | |
| pkgs.callPackage ./naps2.nix {} |
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
| { autoPatchelfHook | |
| , curl | |
| , dotnet-runtime | |
| , dotnet-sdk | |
| , dpkg | |
| , fetchurl | |
| , gtk3 | |
| , icu | |
| , krb5 | |
| , lib |
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 | |
| /* | |
| Plugin Name: Media Deduper Pro CLI | |
| Plugin URI: https://avu.nu/ | |
| Description: Provides WP-CLI commands for Media Deduper Pro. | |
| Version: 1.0 | |
| Author: Avunu LLC | |
| Author URI: https://avu.nu/ | |
| */ |
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
| # Import the CSV files | |
| $posts_table = Import-Csv -Path "wp_posts.csv" | Group-Object -AsHashTable -Property 'ID' | |
| $postmeta_table = Import-Csv -Path "wp_postmeta.csv" | Group-Object -Property 'post_id' | |
| $relationships_table = Import-Csv -Path "wp_mb_relationships.csv" | Group-Object -Property 'from' | |
| # remove subdirectory "Posts" if it exists | |
| if (Test-Path ".\Posts") { | |
| Remove-Item -Path ".\Posts" -Recurse | |
| } |
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
| # Import the CSV files | |
| $posts_table = Import-Csv -Path "wp_posts.csv" | Group-Object -AsHashTable -Property 'ID' | |
| $postmeta_table = Import-Csv -Path "wp_postmeta.csv" | Group-Object -Property 'post_id' | |
| $relationships_table = Import-Csv -Path "wp_mb_relationships.csv" | Group-Object -Property 'from' | |
| # remove subdirectory "Posts" if it exists | |
| if (Test-Path ".\Posts") { | |
| Remove-Item -Path ".\Posts" -Recurse | |
| } |
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
| [mysqld] | |
| bulk_insert_buffer_size = 8388608 | |
| character-set-client-handshake = FALSE | |
| character-set-server = utf8mb4 | |
| collation-server = utf8mb4_unicode_ci | |
| innodb_buffer_pool_chunk_size = 67108864 | |
| innodb_buffer_pool_size = 67108864 | |
| innodb_checksum_algorithm = full_crc32 | |
| innodb_doublewrite = 0 | |
| innodb_file_per_table = 1 |