This file contains hidden or 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
| server { | |
| listen 0.0.0.0:80; | |
| # Sniffs for domains of the format | |
| # pr.[project-id].[pull-request-id].example.com, e.g. | |
| # pr.lullabot_com.387.example.com. The project id must be only alphanumeric | |
| # and underscores or hyphens. | |
| server_name ~^pr\.(?<project>[a-zA-Z_-]*)\.(?<pull_request_id>[0-9]*)\.example\.com$; | |
| ## Access and error logs. | |
| access_log /var/log/nginx/pr.$project.access.log; |
This file contains hidden or 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): |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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="" | |
| 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 hidden or 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 hidden or 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 hidden or 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) { |