This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git attribution string | |
https://drupal.org/user/129588/git-attribution | |
# Issue summary | |
https://drupal.org/node/2099611/project-issue/json | |
# Solr search | |
https://drupal.org/drupalorg-search/help/js/searchstring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
/** | |
* Imports a CSV file into a database. | |
*/ | |
$file = $_ARGV[0]; | |
$handle = fopen($file,"r"); | |
$key = 0; | |
$query = " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Block Yesware tracking pixels. | |
127.0.0.1 yesware.com | |
127.0.0.1 apps.yesware.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# See https://github.com/git/git/tree/master/contrib/diff-highlight | |
export PATH=$PATH:$(brew --cellar git)'/'$(git --version | sed 's/git version //')/share/git-core/contrib/diff-highlight | |
# Add this to your gitconfig. | |
[pager] | |
log = diff-highlight | less | |
show = diff-highlight | less |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Demo Framework | |
Basics | |
The following DF modules are stored on D.O. as projects: | |
Assemble -- Panels, Views, Beans, Chaos Tools, Webform | |
Curate -- Inline Editing, Site Previews, Workbench, Revisioning | |
Import -- Migrate extensions and Feeds for injecting demo entities | |
All other DF modules are in this repo, they are: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function drupal-install() { | |
sudo rm -rf sites/default; | |
sudo git checkout -- sites/default; | |
sudo chmod -R 777 sites/default; | |
sudo chown -R `whoami` sites/default; | |
sudo git checkout -- sites/default; | |
sudo chown -R `whoami` sites/default; | |
#exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package Name Type Version | |
Acquia Network Connector Acquia agent (acquia_agent) Module 7.x-2.12 | |
Acquia Network Connector Acquia search (acquia_search) Module 7.x-2.12 | |
Acquia Network Connector Acquia Site Profile Information (acquia_spi) Module 7.x-2.12 | |
Chaos tool suite Chaos tools (ctools) Module 7.x-1.3+4-dev | |
Chaos tool suite Page manager (page_manager) Module 7.x-1.3+4-dev | |
Chaos tool suite Views content panes (views_content) Module 7.x-1.3+4-dev | |
Commons - Building blocks Commons Activity Streams (commons_activity_streams) Module 7.x-3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CacheFormDatabaseCache extends DrupalDatabaseCache { | |
pubic function __construct($bin) { | |
Database::setActiveConnection('myconnection'); | |
$this->bin = $bin; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit f1f7f92eff14a56fd3eec137b4d25f8eae8b139c | |
Author: Cameron Tod <cameron.tod@gmail.com> | |
Date: Mon Feb 17 12:32:35 2014 +0000 | |
Added local settings include, to ease debugging of memory issue. | |
diff --git a/.gitignore b/.gitignore | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -2,4 +2,5 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Apache Rewrite | |
RewriteEngine on | |
# Force image styles that have local files that exist to be generated. | |
RewriteCond %{REQUEST_URI} ^/sites/([^\/]*)/files/styles/[^\/]*/public/((.*))$ | |
RewriteCond %{DOCUMENT_ROOT}/sites/%1/files/%2 -f | |
RewriteRule ^(.*)$ $1 [QSA,L] | |
# Otherwise, send anything else that's in the files directory to the | |
# production server. | |
RewriteCond %{REQUEST_URI} ^/sites/[^\/]*/files/.*$ |