Skip to content

Instantly share code, notes, and snippets.

View paolomainardi's full-sized avatar

Paolo Mainardi paolomainardi

View GitHub Profile
data:
build: containers/data
volumes:
- data:/data
mariadb:
build: containers/mariadb
volumes_from:
- data
#!/usr/bin/php
<?php
/**
* @file
* A Git pre-commit hook script to run phpmd.
*/
$return_back = '../../';
$php_md_bin = realpath(getcwd() . '/bin/phpmd');
@paolomainardi
paolomainardi / pre-commit_debug_code
Created September 25, 2014 23:42
pre-commit_debug_code
#!/usr/bin/env bash
# Author: Boris Guéry <[email protected]>
# https://github.com/borisguery/git-keywords-checker
# Add or remove keywords here
KEYWORDS_REGEX="var_dump\(|die\(|Zend_Debug::|print_r\(|console\.(debug|info|log|warn)\("
# Add extensions to check here
EXTENSIONS_REGEX="(.php$|.module$|.inc$|.install$|.test$|.profile$|.theme$|.js$)"
ERRORS_BUFFER=""
@paolomainardi
paolomainardi / pre-commit_dcq
Last active August 29, 2015 14:06
pre-commit_dcq
#!/usr/bin/php
<?php
/**
* @file
* A Git pre-commit hook script to check files for PHP syntax errors and Drupal
* coding standards violations. Requires phpcs and Coder Sniffer:
*
* @see https://drupal.org/node/1419988
*/
@paolomainardi
paolomainardi / pre-commit
Last active August 29, 2015 14:06
dfq-pre-commit
#!/usr/bin/php
<?php
/**
* @file
* place this file in your $GIT_DIR/hooks directory and call it pre-commit
* anyother scripts you want to execture on commit can then also be placed
* in $GIT_DIR/hooks with the correct naming convention.. ie:
* pre-commit_[whatevernameyouwant] make that file executable and this script
* finds it and runs it.
*/
diff --git a/elite.make b/elite.make
index 0a6fdee..75070c9 100644
--- a/elite.make
+++ b/elite.make
@@ -436,6 +436,7 @@ projects[domain_bonus][subdir] = "contrib"
projects[domain_bonus][version] = "1.0-alpha1"
projects[domain_bonus][type] = "module"
projects[domain_bonus][patch][] = "http://files.agavee.com/patches/remove_object_log_dependence.patch"
+projects[domain_bonus][patch][] = "https://drupal.org/files/issues/domain_bonus-UBERNAME_fix-2329747-2.patch"
<?php
require_once 'goutte.phar';
use Goutte\Client;
$client = new Client();
$crawler = $client->request('GET', 'http://dbunico20.beniculturali.it/DBUnicoManagerWeb/dbunicomanager/searchPlace?modulo=luoghi&tipologiaLuogo=1');
$crawler->filter('mibac metainfo workflow')->each(function ($node) {
print $node->text();
});
82c82
< CONFIG["LIBRUBY_DLDFLAGS"] = "-undefineddynamic_lookup -multiply_definedsuppress -install_name $(libdir)/$(LIBRUBY_SO) -current_version $(MAJOR).$(MINOR).$(TEENY) -compatibility_version $(ruby_version) $(XLDFLAGS)"
---
> CONFIG["LIBRUBY_DLDFLAGS"] = "-undefineddynamic_lookup -multiply_defined suppress -install_name $(libdir)/$(LIBRUBY_SO) -current_version $(MAJOR).$(MINOR).$(TEENY) -compatibility_version $(ruby_version) $(XLDFLAGS)"
125c125
< CONFIG["DLDFLAGS"] = "-undefineddynamic_lookup -multiply_definedsuppress"
---
> CONFIG["DLDFLAGS"] = "-undefineddynamic_lookup -multiply_defined suppress"
/**
* Helper function for cloning and drupal_render()'ing elements.
*/
function aquaknow_render_clone($elements) {
static $instance;
if (!isset($instance)) {
$instance = 1;
}
foreach (element_children($elements) as $key) {
if (isset($elements[$key]['#id'])) {
.block-toggle .content ul.content-links, .block-toggle .content ul.links{
background-color: #5EA3D0;
z-index: -10;
}
body #column-right, .one-sidebar #column-right {
background: #f7f9fc url(../images/sidebar_bg.png) no-repeat right top;
z-index: -20;
}