Skip to content

Instantly share code, notes, and snippets.

@webchick
webchick / gist:11268260
Last active August 29, 2015 14:00
D6 support length issue
https://drupal.org/node/2136029
Our current policy is to stop security supporting Drupal X when Drupal (X+2) is released. In other words, stop security supporting D6 when 8.0.0 is released. Which means, if the day after 8.0.0 is released, a security vulnerability is discovered in D7 and/or D8, an SA that discloses that vulnerability publicly can be made once it is fixed for those versions, even if the same vulnerability also exists in D6. Which potentially puts sites running D6 at high risk.
The <a href="https://groups.drupal.org/imp">Import API in Drupal 8 core</a> team is working hard to support a direct D6 to D8 migration path (the initial patch was just committed). However, in practice, few sites will be able to migrate their D6 site to 8.0 the day that it's released. It'll take some time for contrib modules to be ready on D8. With D6 and D7, it took over a year from the core release for some of the most popular modules to get ported and released. Some of that time can be attributed to waiting on Views,
@webchick
webchick / guzzle.php
Created August 23, 2014 05:58
8-line Guzzle script to read D8 REST API
<?php
require_once __DIR__ . '/core/vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client();
$response = $client->get('http://example.com/node/1', array(
'headers' => array('Accept' => 'application/hal+json')
));
print_r($response->json());
Hi, I'm Angie, a Drupal developer playing around with WordPress for fun. :) Here's some feedback on the doc contribution process, in case it's helpful.
My goal was to write a simple "hello world" plugin in WordPress.
First thing I did was search 'wordpress plugins' in Google and came across https://wordpress.org/plugins/about/ (one of the sub-pages listed in the main wordpress.org google listing). This is a few too many steps ahead, when I'm ready to contribute my code back to WordPress.org.
Next I tried https://wordpress.org/plugins/about/faq/, but that's again about contributing back, and assumes I already know about how to write plugins.
SUGGESTION: Add a link off to the plugin developer docs from one or both of these pages, since tweaking Google's SEO is hard. :)
@webchick
webchick / gist:b7eef2aee6fb92634871
Last active August 29, 2015 14:13
Top 300 issue tags in Drupal core
SELECT td.tid, td.name, COUNT(*) as cnt
FROM taxonomy_term_data td
INNER JOIN field_data_taxonomy_vocabulary_9 v ON v.taxonomy_vocabulary_9_tid = td.tid
INNER JOIN field_data_field_project p ON p.entity_id = v.entity_id
WHERE p.field_project_target_id = 3060
GROUP BY name
ORDER BY cnt DESC
LIMIT 300;
"tid","name","cnt"
Some text.
More text.
@webchick
webchick / gist:85e02f6c2f96d38f6c0a
Last active September 25, 2015 14:40
I <3 (3)DS

(3)DS is the best system EVER! I love it soooo much. Here are some of my favourite games and why.

Note: Check out http://www.metacritic.com/browse/games/release-date/available/3ds/metascore and http://www.metacritic.com/browse/games/release-date/available/ds/metascore as well. You might have more variety in your game choices than I do, and there are lots of other games rated in the 80s+.

ACTION / ADVENTURE

  • The Legend of Zelda: A Link Between Worlds: This game is sooooo good. Totally reminds me of SNES-style Zelda, and unlike most of the O&@#ing Zelda games on 3DS / DS, this one is an original game and not a remake.
  • Various DS Castlevania games (not the 3DS one! That one SUCKS!): Horror / exploration. You're in an enormous castle and need to find your way around, but certain paths are blocked off to you until you beat bosses and then obtain a new power like, say, the ability to slide into narrow passages. If you ever played Super Metroid or Super Castlevania on SNES, that's
Make file: http://drupalcode.org/project/nodestream.git/blob_plain/refs/heads/7.x-2.x:/nodestream.make
Relevant lines:
; Parallel development
projects[ns_core][type] = module
projects[ns_core][download][type] = git
projects[ns_core][download][branch] = 7.x-2.x
Make file: http://drupalcode.org/project/openpublic.git/blob_plain/refs/heads/7.x-1.0.4:/openpublic.make
Relevant lines:
projects[context_field][subdir] = contrib
projects[context_field][download][type] = git
projects[context_field][download][url] = http://git.drupal.org/project/context_field.git
projects[context_field][download][branch] = 7.x-1.x
projects[context_field][patch][] = http://drupal.org/files/1050724-patch-to-context-field-to-remove-context-ui-editor-make-D7.patch
Need documentation edit
need feedback edit
Need IIS test edit
need solution for autosort upload files edit
need-tests edit
needs accessibility review edit
Needs architectural review edit
needs backport edit
Needs backport to 1.x edit
needs backport to 2.x edit
-bash-3.2$ ls
apachesolr dbtng google_analytics multiple_email versioncontrol
apachesolr_mess_up_results devel homebox paranoia versioncontrol_git
apachesolr_multisitesearch diff html5_user_geolocation path_redirect versioncontrol_project
autoload drupalorg httpbl project views
bakery drupal_queue image project_dependency views_bulk_operations
beanstalkd features imageapi project_git_instructions views_content_cache
bueditor filefield imagecache project_info views_field_view
cck filter_html_image_secure imagefield project_issue views_litepager
codefilter flag