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
select g.destid1, i.destid1 from kaltura_gallery_entries k1 right join migrate_map_gallery g on k1.gid = g.sourceid1 right join migrate_map_galleryitem i on k1.kid = i.sourceid1 where k1.kaltura_order=(select min(k2.kaltura_order) from kaltura_gallery_entries k2 where k1.gid = k2.gid); |
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
window.fluid.dockBadge = ''; | |
setTimeout(updateDockBadge, 3000); | |
setInterval(updateDockBadge, 5000); | |
function updateDockBadge() { | |
var badge = 0, | |
overdue = $('b.badge.overdue').text(), | |
inbox = $('b.badge.inbox-badge:visible').text(); | |
if (overdue) { |
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
DROP TABLE role_permission, date_format_type, `comment`, taxonomy_term_data, | |
node_revision, filter, filter_format, block, block_role, blocked_ips, | |
taxonomy_term_hierarchy, field_config, block_custom, | |
field_config_instance, cache_field, field_data_body, | |
field_data_comment_body, field_revision_body, | |
field_revision_comment_body, field_data_field_image, | |
field_data_field_tags, field_revision_field_image, | |
field_revision_field_tags, block_node_type, file_managed, | |
taxonomy_index, file_usage, taxonomy_vocabulary; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Line Height Test</title> | |
<style type="text/css"> | |
.with-ems { | |
font-size: 100%; /* 16px */ | |
line-height: 1.5em; | |
} | |
.without-ems { |
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/env sh | |
# https://gist.github.com/4088499 | |
FIND="^monosnap.com\/image\/\([a-zA-Z0-9]*\)" | |
REPLACE="![](https:\/\/api.monosnap.com\/image\/download\?id=\1)" | |
pbpaste | | |
# Different versions of monosnap have this formatted differently, so we grep | |
# first for just what we need. | |
grep -o monosnap.com/image/[a-zA-Z0-9]* | | |
# Grab the current cliboard contents and do our replacement. |
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/env bash | |
set -e | |
# Jenkins job script for use with the Jenkins Github Drupal, which can be found | |
# at https://github.com/Lullabot/jenkins_github_drupal. NOTE, all shell scripts | |
# have been symlinked to /usr/local/bin to make them easier to call here. For | |
# example: | |
# ln -s /usr/local/share/jenkins_github_drupal/prepare_dir.sh \ | |
# /usr/local/bin/jgd-prepare-dir |
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
warning /\[warning\]/ | |
error /\[error\]/ | |
info /\[completed\]/ | |
info /\[success\]/ | |
info /\[ok\]/ | |
error /Processed 0/ |
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
<? | |
// So at the top of the node--article.tpl.php there's this | |
$view = 'related_bits'; | |
$display = 'block'; | |
$related_bits_block = views_embed_view($view, $display); | |
// Then down within the actual page markup stuff there's this | |
<?php if (isset($related_bits_block) && $related_bits_block): ?> |
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 | |
/** | |
* @file | |
* Extends DrupalWebTestCase to use Xdebug for drupalGet() and drupalPost(). | |
*/ | |
class DrupalXdebugWebTestCase extends DrupalWebTestCase { | |
/** | |
* Override the parent drupalPost to allow xdebug options. |
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/env python | |
from peewee import * | |
DATABASE = 'lullabot' | |
USER = 'sandbox' | |
PASSWD = 'sandbox' | |
mysql_db = MySQLDatabase(DATABASE, user=USER, passwd=PASSWD) | |
class MySQLModel(Model): |