Skip to content

Instantly share code, notes, and snippets.

Avatar

Robin Monks mozillamonks

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mozillamonks on github.
  • I am rpm (https://keybase.io/rpm) on keybase.
  • I have a public key whose fingerprint is C1DC 5D41 0861 11A3 8EFD DB25 06AF 0841 1C23 1FF8

To claim this, I am signing this object:

View designer.html
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
</template>
<script>
@mozillamonks
mozillamonks / feeds_body_fix.sql
Created Jul 3, 2012
Fix translated node bodies after an import from feeds in Drupal 7
View feeds_body_fix.sql
delete i from field_data_body as b join node as n on n.vid=b.revision_id join field_data_body as i on n.vid=i.revision_id WHERE n.language="en" AND b.language="und" and i.language = 'en';
UPDATE IGNORE field_data_body as b join node as n on n.vid=b.revision_id SET b.language="en" WHERE n.language="en" AND b.language="und";
delete i from field_data_body as b join node as n on n.vid=b.revision_id join field_data_body as i on n.vid=i.revision_id WHERE n.language="es" AND b.language="und" and i.language = 'es';
UPDATE IGNORE field_data_body as b join node as n on n.vid=b.revision_id SET b.language="es" WHERE n.language="es" AND b.language="und";
delete i from field_data_body as b join node as n on n.vid=b.revision_id join field_data_body as i on n.vid=i.revision_id WHERE n.language="ar" AND b.language="und" and i.language = 'ar';
UPDATE IGNORE field_data_body as b join node as n on n.vid=b.revision_id SET b.language="ar" WHERE n.language="ar" AND b.language="und";
delete i from field_data_body as b join node as n