Skip to content

Instantly share code, notes, and snippets.

View RonWilliams's full-sized avatar

Ron Williams RonWilliams

View GitHub Profile
PHP Fatal error: Call to undefined function i18n_field_entity_property_callback() in /var/application/docroot/sites/all/modules/contrib/entity/modules/field.info.inc on line 30
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined functioni18n_field_entity_property_callback() in /var/application/docroot/sites/all/modules/contrib/entity/modules/field.info.inc,line 30
* INFO: Running install_red_hat_enterprise_linux_stable_deps()
warning: /var/tmp/rpm-tmp.e5lS4E: Header V3 RSA/SHA256 Signature, key ID 352c64e 5: NOKEY
Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rp m
Preparing... ########################################
Updating / installing...
epel-release-7-9 ########################################
error: /tmp/salt-gpg-6CexgfoN.pub: key 1 not an armored public key.
* ERROR: Failed to run install_red_hat_enterprise_linux_stable_deps()!!!
@RonWilliams
RonWilliams / query.sql
Created September 27, 2016 17:58
DB Query for Updating Drupal Date Fields
update profile_values p
set value = concat( "a:3:{s:5:\"month\";s:", length( date_format(
str_to_date( p.value, "%m/%d/%y" ) , "%c" ) ) , date_format(
str_to_date( p.value, "%m/%d/%y" ) , ":\"%c\";s:3:\"day\";s:" ) ,
length( date_format( str_to_date( p.value, "%m/%d/%y" ) , "%e" ) ) ,
date_format( str_to_date( p.value, "%m/%d/%y" ) ,
":\"%e\";s:4:\"year\";s:4:\"%Y\";}" ) )
WHERE p.value LIKE '%/%/%'
AND p.fid
IN (65);
Sitename
=======
requirements
------------
* [Docker Toolbox](https://www.docker.com/docker-toolbox)
Building (local)
---
* Run `Docker Quickstart Terminal`
@RonWilliams
RonWilliams / drupal_varnish4_SA-CONTRIB-2016-039.vcl
Last active July 13, 2016 19:02
Varnish mitigation SA-CONTRIB-2016-039 (Coder Module) Highly Critical Vulnerability
# Block access via Varnish to modules/coder and modules/contrib/coder
# Mitigates SA-CONTRIB-2016-039 https://www.drupal.org/node/2765575
# You should still remove coder from production or update your coder version after applying.
# Add the lines 6-9 inside the "sub vcl_recv" block insider your active .vcl file
sub vcl_recv {
if (req.url ~ "\/modules\/coder\/.*" ||
req.url ~ "\/modules\/contrib\/coder\/.*") {
return (synth(404, "Page not found."));
}