Skip to content

Instantly share code, notes, and snippets.

@itsekhmistro
itsekhmistro / docker-cleanup-resources.md
Created Dec 30, 2019 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

View d8-rs-router.fix-q.patch
diff --git a/commands/runserver/d8-rs-router.php b/commands/runserver/d8-rs-router.php
index 9e74e56..a0bfcb0 100644
--- a/commands/runserver/d8-rs-router.php
+++ b/commands/runserver/d8-rs-router.php
@@ -17,9 +17,6 @@ if (file_exists('.' . $url['path'])) {
return FALSE;
}
-// Populate the "q" query key with the path, skip the leading slash.
-$_GET['q'] = $_REQUEST['q'] = substr($url['path'], 1);
@itsekhmistro
itsekhmistro / service-decorator.php
Last active Jul 13, 2016 — forked from e0ipso/service-decorator.php
Swap out service for a decorator
View service-decorator.php
<?php
/**
* @file
* Contains Drupal\my_module\MyModuleServiceProvider
*/
namespace Drupal\my_module;
use Drupal\Core\DependencyInjection\ContainerBuilder;
View renderviz-prototype.patch
core/lib/Drupal/Core/Render/Renderer.php | 19 +
modules/renderviz/css/renderviz.layout.css | 19 ++
modules/renderviz/css/renderviz.theme.css | 11 +
modules/renderviz/js/jquery.comments.js | 351 +++++++++++++++++++++++++++++
modules/renderviz/js/renderviz.js | 102 +++++++++
modules/renderviz/renderviz.info.yml | 3 +
modules/renderviz/renderviz.libraries.yml | 24 ++
modules/renderviz/renderviz.module | 13 ++
8 files changed, 532 insertions(+)
View title.entity_translation-fallback.patch
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
old mode 100644
new mode 100755
index 99d610a..ee1b7e6
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,22 +1,6 @@
Title 7.x-1.x, xxxx-xx-xx
-------------------------
View domain_locale.patch
diff --git a/sites/all/modules/contrib/domain_locale/domain_locale.module b/sites/all/modules/contrib/domain_locale/domain_locale.module
index 5ae889c..e8aed4f 100755
--- a/sites/all/modules/contrib/domain_locale/domain_locale.module
+++ b/sites/all/modules/contrib/domain_locale/domain_locale.module
@@ -169,7 +169,13 @@ function domain_locale_language_default() {
$language_default = language_default();
}
else {
- //Domain Conf stores simple values (strings) so populate language object
+ // Domain Conf has stored simple values (strings) previously,
View entity_translation.domain_locale.patch
index 236d488..28fd551
--- a/entity_translation.module
+++ b/entity_translation.module
@@ -605,7 +605,7 @@ function entity_translation_edit_access() {
* release.
*/
function entity_translation_form_language($langcode, $handler) {
- return entity_translation_get_existing_language($handler->getEntity(), $handler->getEntityType(), $langcode);
+ return entity_translation_get_existing_language($handler->getEntityType(), $handler->getEntity(), $langcode);
}