Skip to content

Instantly share code, notes, and snippets.

View q0rban's full-sized avatar
👋

James Sansbury q0rban

👋
View GitHub Profile
@q0rban
q0rban / -
Created March 18, 2014 18:45
https://gist.github.com/9626666
@q0rban
q0rban / -
Created March 26, 2014 16:21
SELECT nid, title, date(from_unixtime(d.field_publish_date_value)), f.field_show_target_id from node n
left join `field_data_field_show` f
on n.vid = f.revision_id and f.entity_type = 'node'
inner join field_data_field_publish_date d
on n.vid = d.revision_id and d.entity_type = 'node'
where n.type = 'theplatform_video'
and f.field_show_target_id is not null
order by d.field_publish_date_value desc
limit 100;
@q0rban
q0rban / -
Created March 27, 2014 00:35
Mar 27 00:29:40 web-6216 msnbc: http://edit.msnbc.com|1395880180|content|173.213.212.246|http://edit.msnbc.com/node/294861/edit|http://edit.msnbc.com/node/294861/edit|236771|view|homepage: updated 03/26 PM HOMEPAGE.
Mar 27 00:29:40 web-6216 msnbc: http://edit.msnbc.com|1395880180|php|173.213.212.246|http://edit.msnbc.com/node/294861/edit|http://edit.msnbc.com/node/294861/edit|236771||EntityMetadataWrapperException: Unknown data property nid. in EntityStructureWrapper->getPropertyInfo() (line 335 of /mnt/www/html/msnbcedit/docroot/profiles/all/modules/contrib/entity/includes/entity.wrapper.inc).
@q0rban
q0rban / -
Last active August 29, 2015 13:57
msnbc@web-5518:/var/www/html/msnbc.prod/docroot/sites/msnbc$ grep -nE "Mar\ 27\ 16.*\|php\|" /var/log/sites/msnbc.prod/logs/web-5518/drupal-watchdog.log | grep -v msnbc_theplatform_thumbnail_url
32072:Mar 27 16:01:13 web-5525 msnbc: http://www.msnbc.com|1395936073|php|209.170.78.176|http://www.msnbc.com/andrea-mitchell-reports/watch/victims-of-sexual-abuse-in-the-military-calling-for-a-change-21631555771||0||Notice: A non well formed numeric value encountered in msnbc_metatag_metatags_view_alter() (line 101 of /mnt/www/html/msnbc/docroot/sites/msnbc/modules/custom/msnbc_metatag/msnbc_metatag.module).
32394:Mar 27 16:04:34 web-5522 msnbc: http://www.msnbc.com|1395936274|php|195.59.55.216|http://www.msnbc.com/apachesolr_autocomplete_jsonp|http://www.msnbc.com/apachesolr_autocomplete_jsonp|0||Notice: Undefined index: query in msnbc_search_autocomplete_callback() (line 270 of /mnt/www/html/msnbc/docroot/sites/msnbc/modules/custom/msnbc_search/msnbc_search.module).
32663:Mar 27 16:07:28 web-5525 msnbc: http://www.
@q0rban
q0rban / -
Created March 28, 2014 13:53
#2678
#2676
#2675
#2673
#2665
#2663
#2662
#2660
#2656
#2655
if ($this->view->current_display == 'attachment_3') {
$counter += 10;
}
if ($this->view->current_display == 'attachment_3') {
$counter += $this->view->query->pager->get_offset();
}
Started by lullajenky@chat.freenode.net on request of 'msnbcbot'
[EnvInject] - Loading node environment variables.
Building remotely on tugboat.lullabot.com in workspace /var/lib/jenkins/workspace/msnbc_pull_request_builder
Checkout:msnbc_pull_request_builder / /var/lib/jenkins/workspace/msnbc_pull_request_builder - hudson.remoting.Channel@2fcdf:tugboat.lullabot.com
Using strategy: Default
Last Built Revision: Revision bc5cf1c9fbe8c19625d87f9ca4cbe626222b1ab2 (origin/lullabot-publisher)
Cloning the remote Git repository
Cloning repository git@github.com:NBCUOTS/Publisher7_msnbc_core.git
git --version
git version 1.7.9.5
@q0rban
q0rban / INSTALL.md
Last active August 29, 2015 14:25
git-drush

Installation Instructions

First, copy the link to the raw git-drush.sh file.

# Download the file
$ wget [link-to-raw-git-drush.sh-file]

# Move it to a directory where you store binaries, such as ~/bin or /usr/local/bin:
$ mv git-drush.sh /usr/local/bin/git-drush
@q0rban
q0rban / Starter Drush Make
Created July 28, 2010 17:53
Sample Drush Makefile
core = 6.x
projects[pressflow][type] = "core"
projects[pressflow][download][type] = "get"
projects[pressflow][download][url] = "http://lb.cm/pressflow6"
; INSTALL PROFILES
projects[profiler] = 2.0beta1
; DEVELOPMENT