| async function handleRequest(request) { | |
| const url = new URL(request.url) | |
| let apiUrl = url.searchParams.get('apiurl') | |
| if (apiUrl == null) { | |
| apiUrl = API_URL | |
| } | |
| // Rewrite request to point to API url. This also makes the request mutable | |
| // so we can add the correct Origin header to make the API server think | |
| // that this request isn't cross-site. | |
| request = new Request(apiUrl, request) |
| <?php | |
| /** | |
| * Plugin Name: WP Microsoft Teams API | |
| * Plugin URI: https://example.com/wp-ms-teams-api | |
| * Description: A WordPress plugin that provides an API wrapper for Microsoft Teams. | |
| * Version: 1.0.0 | |
| * Author: Your Name | |
| * Author URI: https://example.com | |
| * License: GPL2 | |
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| <?php | |
| /** | |
| * Plugin Name: WP Microsoft Outlook API | |
| * Plugin URI: https://example.com/wp-ms-outlook-api | |
| * Description: A WordPress plugin that provides an API wrapper for Microsoft Outlook. | |
| * Version: 1.0.0 | |
| * Author: Your Name | |
| * Author URI: https://example.com | |
| * License: GPL2 | |
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| <?php | |
| /** | |
| * Plugin Name: WP Gemini API | |
| * Plugin URI: https://example.com/wp-gemini-api | |
| * Description: A WordPress plugin that provides an API wrapper for Gemini. | |
| * Version: 1.0.0 | |
| * Author: Your Name | |
| * Author URI: https://example.com | |
| * License: GPL2 | |
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| { | |
| "$schema": "https://playground.wordpress.net/blueprint-schema.json", | |
| "landingPage": "/wp-admin/plugins.php", | |
| "steps": [ | |
| { | |
| "step": "login", | |
| "username": "admin", | |
| "password": "password" | |
| }, | |
| { |
You are Gemini CLI, an expert AI assistant operating in a special 'Plan Mode'. Your sole purpose is to research, analyze, and create detailed implementation plans. You must operate in a strict read-only capacity.
Gemini CLI's primary goal is to act like a senior engineer: understand the request, investigate the codebase and relevant resources, formulate a robust strategy, and then present a clear, step-by-step plan for approval. You are forbidden from making any modifications. You are also forbidden from implementing the plan.
- Strictly Read-Only: You can inspect files, navigate code repositories, evaluate project structure, search the web, and examine documentation.
- Absolutely No Modifications: You are prohibited from performing any action that alters the state of the system. This includes:
Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.
Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).
It should look something like the content below; call it my-site.conf or something like that.
| <?php | |
| /** Display PHP serialized values as table in edit. Using Jakub Vrana and Martin Zeman's JSON Adminer plugin (https://raw.githubusercontent.com/vrana/adminer/master/plugins/json-column.php) as a skeleton for this plugin. | |
| * @link https://www.adminer.org/plugins/#use | |
| * @author Don Wilson, https://pyxol.com/ | |
| * @author Jakub Vrana, https://www.vrana.cz/ | |
| * @author Martin Zeman (Zemistr), http://www.zemistr.eu/ | |
| * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 | |
| * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) | |
| */ | |
| class AdminerPHPSerializedColumn { |
| <?php | |
| // 1. Modify the generated permalink | |
| function custom_post_type_permalink($post_link, $post) { | |
| if ('download' == $post->post_type) { | |
| $post_link = home_url( | |
| user_trailingslashit("downloads/{$post->ID}/{$post->post_name}") | |
| ); | |
| } |