Skip to content

Instantly share code, notes, and snippets.

@bdone
bdone / vptest.info
Created April 30, 2012 02:22 — forked from voxpelli/vptest.info
OAuth.module 3.x example - a test I made to verify the D7 port of the module - should work well on D6 as well though
name = VoxPelli OAuth Test
core = 7.x
dependencies[] = oauth_common
dependencies[] = http_client
@bdone
bdone / htmlfiles_migration.inc.php
Created October 6, 2012 13:18 — forked from marktheunissen/htmlfiles_migration.inc.php
HTML Files Migration into Drupal using Migrate
<?php
class MyMigration extends Migration {
public $base_dir;
/**
* Constructor.
*/
public function __construct() {
parent::__construct();
@bdone
bdone / gist:4108670
Created November 19, 2012 02:32
test links
Link to <a href="http://www.google.com">google</a>.
Link with <a href="http://www.google.ca/?q=some space">space in it</a>.
Another link with <a href="/your link">space in it</a>.
Link with <a href="javascript:alert('inline!');">inline JavaScript.</a>
An image as a link: <br />
<a href="http://drupal.org"><img src="http://drupal.org/files/druplicon.small_.png"></a>
@bdone
bdone / gist:4675018
Created January 30, 2013 17:40
interdiff-986888-47-49.txt
diff --git a/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php b/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php
index 37100ae..baa3f33 100644
--- a/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php
+++ b/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php
@@ -262,13 +262,15 @@ function testUpdateShowDisabledThemes() {
}
}
- /**
- * Tests that hidden base themes do not report a specified undefined
@bdone
bdone / gist:4675026
Created January 30, 2013 17:41
interdiff-986888-49-51.txt
diff --git a/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php b/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php
index baa3f33..1fdd0b3 100644
--- a/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php
+++ b/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php
@@ -293,36 +293,6 @@ function testUpdateHiddenBaseTheme() {
}
/**
- * Tests updates with a hidden base theme.
- */
#!/bin/sh
# Proper function of this script on Mac requires:
# install tiff 3.6.1 or newer http://www.libtiff.org/
# brew install ghostscript
# brew install imagemagick
timer()
{
if [[ $# -eq 0 ]]; then
<?php
// notify that settings-global is in use
// if (!drupal_is_cli()) {
// drupal_set_message(t('Additional configuration added via "%file".', array('%file' => str_replace('bdone', '...', __FILE__))), 'warning');
// }
// ************************************
// SYSTEM
// ************************************
@bdone
bdone / brewstack install
Last active December 18, 2015 19:48 — forked from shrop/brewStack.md
# brewstack install
### Install steps:
* Install Homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install git
$ brew install homebrew/php/php56
$ brew install mariadb
<!-- THEME DEBUG -->
<!-- CALL: theme('html') -->
<!-- FILE NAME SUGGESTIONS:
* html--front.tpl.php
* html--node.tpl.php
x html.tpl.php
-->
# Remove existing database
drush sql-drop -y
# Remove existing install
sudo rm -rf sites/default
# Restore the sites/default/default.settings.php file
sudo git checkout -- sites/default
# Temporarily make the sites/default writable by anyone