Skip to content

Instantly share code, notes, and snippets.

@pwolanin
pwolanin / parents.patch
Created September 26, 2016 15:49
OG subgroups
diff --git a/src/Og.php b/src/Og.php
index 1272d18..38f00d4 100644
--- a/src/Og.php
+++ b/src/Og.php
@@ -128,6 +128,34 @@ class Og {
}
/**
+ * Get the parent groups of an entity.
+ *
/**
* Provides a search plugin manager.
*/
class SearchPluginManager extends DefaultPluginManager {
/**
* {@inheritdoc}
*/
public function __construct(\Traversable $namespaces) {
@pwolanin
pwolanin / dg-htaccess-changes2.patch
Created October 17, 2012 19:40
patch for htaccess
diff --git a/.htaccess b/.htaccess
index 246edc2..184eb8b 100644
--- a/.htaccess
+++ b/.htaccess
@@ -86,7 +86,24 @@ DirectoryIndex index.php index.html index.htm
# uncomment the following:
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
# RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
-
+##GardensExcludeFromExportStart################################################
@pwolanin
pwolanin / find-plaintext.patch
Created September 28, 2012 13:25
patch for https redirect
diff --git a/docroot/.htaccess b/docroot/.htaccess
index 3c37c16..b41c1fd 100644
--- a/.htaccess
+++ b/.htaccess
@@ -61,6 +61,11 @@ DirectoryIndex index.php index.html index.htm
RewriteCond %{HTTP:X-FORWARDED-PROTO} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
+ # Redirect to https
+ RewriteCond %{HTTP_HOST} find.acquia.com
@pwolanin
pwolanin / gist:3277810
Created August 6, 2012 19:31
brew install -v geany output
==> Downloading http://download.geany.org/geany-0.21.tar.gz
Already downloaded: /Library/Caches/Homebrew/geany-0.21.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/geany-0.21.tar.gz
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/geany/0.21
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/geany/0.21
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no