cd /etc/default/docker (if not existing, create the file)
Add the following line (or the --ip=... part if already existing):
DOCKER_OPTS="--ip=192.168.123.123" (Your docker host IP)
Restart docker: systemctl stop docker
cd /etc/default/docker (if not existing, create the file)
Add the following line (or the --ip=... part if already existing):
DOCKER_OPTS="--ip=192.168.123.123" (Your docker host IP)
Restart docker: systemctl stop docker
<?php | |
function getMinMaxFromMediaQuery($mediaQuery) { | |
$re = '/\d*(min-width|max-width):\s*(\d+\s?)(px|em|rem)/'; | |
preg_match_all($re, $mediaQuery, $matches, PREG_SET_ORDER, 0); | |
$result = array(); | |
if (!empty($matches)) { | |
if (count($matches) <= 2) { | |
foreach ($matches as $match) { | |
if (count($match) == 4) { | |
$result[] = [ |
// RELOAD ON ORIENTAtiON CHANGE: | |
var mqp = window.matchMedia("(orientation: portrait)"); | |
// Detect initial orientation | |
var is_portrait = mqp.matches; | |
var isFullscreen = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement; | |
// Add a media query change listener | |
mqp.addListener(function(m) { | |
// Check if orientation changed: | |
if(m.matches) { | |
// Changed to portrait |
(function($) { | |
/** | |
* jQuery function to scroll the element into the viewport with | |
* typical options and menu bar exclusion. | |
*/ | |
$.fn.scrollToViewport = function(options) { | |
var settings = $.extend({ | |
/** | |
* The scroll duration. | |
*/ |
(function($) { | |
/** | |
* jQuery function to scroll the viewport middle to the element. | |
*/ | |
$.fn.scrollToMiddle = function(options) { | |
var settings = $.extend({ | |
duration: 1000 | |
}, options ); | |
return this.each(function() { |
If you should encounter the problem that some translations are wrongly translated with the equal source language string (for example in our case there were German translations for "Author" translated with "Author" or "Published" with "Published"), you may use the following snippet to list them.
SELECT s.lid,s.source, t.translation FROM `locales_source` s
INNER JOIN locales_target t
WHERE s.lid=t.lid AND CONVERT(s.source USING utf8) = CONVERT(t.translation USING utf8)
AND t.customized=1
To finally delete them, you may use something like this, but make a backup before and know what you're doing!
; Personal Configuration for https://github.com/DanTup/BrowserSelector | |
; See https://julian.pustkuchen.com/en/open-specific-browser-url-open-clickup-brave | |
; Default browser is first in list | |
; Use `{url}` to specify UWP app browser details | |
[browsers] | |
ff = C:\Program Files\Mozilla Firefox\firefox.exe | |
chrome = C:\Program Files (x86)\Google\Chrome\Application\chrome.exe | |
edge = microsoft-edge:{url} |
<?php | |
// Delete paragraph example_bundle bundle! | |
/** @var \Drupal\Core\Config\Entity\ConfigEntityStorage $entity_storage */ | |
$entity_storage = \Drupal::entityTypeManager()->getStorage('paragraphs_type'); | |
$configEntityBildText = $entity_storage->load('example_bundle'); | |
$configEntityBildText->delete(); | |
?> |
<?php | |
/** | |
* Helper function / example code to check | |
* if the given configuration (by name) | |
* exists in active configuration. | |
* @param string $configName | |
* The id of the configuration to check. | |
* | |
* @return boolean |