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
# Match both POST and PUT methods that could be used for uploads | |
acl is_upload method POST PUT | |
acl is_sap_uploader path -m beg /developmentserver/metadatauploader | |
# Block the requests | |
http-request deny deny_status 403 if is_upload is_sap_uploader | |
Add this configuration to your HAProxy frontend section that handles SAP NetWeaver traffic. |
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
Show hidden characters
// **What is this file?** | |
// This file is for use with the SmallWeb project, which is a lightweight web server | |
// and framework for building web applications. The purpose of this file is to | |
// define the development environment for a SmallWeb dev instance using | |
// Visual Studio Code's Remote - Containers feature. | |
// It specifies the configuration for the development container, including the base image, | |
// features, environment variables, and post-creation commands.Think of it as a recipe for | |
// creating a consistent and isolated development environment. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset | |
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 | |
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> | |
<url> | |
<loc>https://pocketbase.io/</loc> |
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
backend bk_horizon_tcp_blast | |
server srv1 192.168.1.101:22443 check | |
server srv2 192.168.1.102:22443 check | |
balance source | |
hash-type consistent sdbm | |
hash-key addr-port | |
hash-balance-factor 150 |
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
frontend ft_horizon_tcp_blast | |
bind *:22443 | |
default_backend bk_horizon_tcp_blast | |
backend bk_horizon_tcp_blast | |
server srv1 192.168.1.101:22443 check | |
server srv2 192.168.1.102:22443 check | |
balance source | |
udp-lb horizon_udp_blast |
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
/** | |
* Sample JS Library for testing JSDoc parsing. | |
* @module SampleJSLibrary | |
*/ | |
/** | |
* A constant value representing the library version. | |
* @const {string} VERSION | |
* @desc The version of the library. | |
*/ |
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
/** | |
* Get unique values from an array of objects based on a specified field. | |
* | |
* @param {Array} data - The array of objects to extract unique values from. | |
* @param {string} field - The field in each object to extract unique values from. | |
* @returns {Array} An array containing unique values from the specified field. | |
*/ | |
function getUniqueValues(data, field) { | |
// Check if 'data' is an array and 'field' is a string | |
if (!Array.isArray(data) || typeof field !== 'string') { |
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 | |
use Drupal\Component\Utility\NestedArray; | |
if (empty($extra[0])) { | |
throw new \Exception("Please supply the id of the node you want to export to CDF."); | |
} | |
$node = \Drupal::entityTypeManager()->getStorage('node')->load($extra[0]); | |
$wrapper = new \Drupal\depcalc\DependentEntityWrapper($node); |
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
Easily create a modal link in Drupal | |
p><a class="use-ajax" data-dialog-options="{"width":800}" data-dialog-type="modal" href="/node/2">See node 2</a></p> | |
source: https://befused.com/drupal/modal |
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
uuid: f9c22d2e-c285-4fb9-b5a0-5dc0e492248e | |
langcode: en | |
status: true | |
dependencies: | |
module: | |
- media | |
- user | |
id: media_revisions | |
label: 'Media revisions' | |
module: views |
NewerOlder