Skip to content

Instantly share code, notes, and snippets.

--- a/uuid_node/uuid_node.module
+++ b/uuid_node/uuid_node.module
@@ -10,7 +10,7 @@ function uuid_node_node_presave($node) {
$node->uuid = uuid_uuid();
}
- if (1 == $node->revision) {
+ if (isset($node->revision) && 1 == $node->revision) {
$node->vuuid = uuid_uuid();
}
cd s3cmd-1.0.1
python setup.py install
s3cmd --configure # to install the key and bucket info
You'll be prompted for Amazon account ID and secret key. You can
get this by logging in to your Amazon account and visiting the
connection-info screen, or from your secure credentials if you
have them.
You'll also be asked for a key to use for encrypting S3
@nickveenhof
nickveenhof / gist:5426141
Created April 20, 2013 14:22
Recipe for the Drupalcamp florida Search Presentation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Makefile for Search Guvannuh ;;
;; ;;
;; Builds Drupal core and contrib modules, with patches. ;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Core version
; ---------------------------------------
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/travis/build/nickveenhof/drupal
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/travis/build/nickveenhof/drupal/ >
Options Indexes FollowSymLinks MultiViews
# PHPENV Setup
<IfModule alias_module>
ScriptAlias /phpenv "/home/travis/.phpenv/shims"
<Directory "/home/travis/.phpenv/shims">
Order allow,deny
Allow from all
Require all granted
</Directory>
</IfModule>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot PATH
<Directory />
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
</Directory>
<Directory PATH >
Options Indexes FollowSymLinks Includes ExecCGI
<VirtualHost *:80>
# [...]
DocumentRoot PATH
<Directory "PATH">
Options FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order deny,allow
Allow from all
{
"AWSTemplateFormatVersion":"2010-09-09",
"Description":"AWS CloudFormation Sample Template for HA Drupal in Multi AZ Deployments. ",
"Parameters":{
"KeyName":{
"Description":"EC2 KeyPair to enable SSH access to the instances",
"Default":"drupaljam",
"Type":"String",
"MinLength":"1",
"MaxLength":"255",
@nickveenhof
nickveenhof / Solr Geospatial Search
Last active September 4, 2015 10:16
Solr Geospatial Search
diff --git a/config/schema/search_api.index.schema.yml b/config/schema/search_api.index.schema.yml
index 96a0abb..7cbced6 100644
--- a/config/schema/search_api.index.schema.yml
+++ b/config/schema/search_api.index.schema.yml
@@ -34,6 +34,9 @@ search_api.index.*:
boost:
type: float
label: 'Boost'
+ faceted:
+ type: boolean