Skip to content

Instantly share code, notes, and snippets.

View rfay's full-sized avatar

Randy Fay rfay

View GitHub Profile
root@drupaltestbot699-mysql:/var/lib/drupaltestbot/checkout# sudo -u www-data /usr/bin/php ./scripts/run-tests.sh --concurrency 8 --php /usr/bin/php --url 'http://drupaltestbot699-mysql/checkout' --file sites/default/modules/payment/payment/tests/payment.test
Drupal test run
---------------
Tests to be run:
- Action hook and callback invocations (PaymentActionHookAndCallbackTest)
- Payment amount form element (PaymentAmountFormElementTest)
- Info hook data (PaymentInfoHookTest)
- Payment line item form element (PaymentLineItemFormElementTest)
drush pdsd payment 7.x-1.x-dev
Array
(
[1090332] => Array
(
[uri] => currency
[version] => 7.x-1.0
[tag] => 7.x-1.0
)
@rfay
rfay / processlist.txt
Created April 17, 2012 18:40
Warmshowers show full processlist
Id User Host db Command Time State Info
803590 rfay_db localhost warmshowers Query 24 Copying to tmp table SELECT ncs.last_comment_timestamp, IF (ncs.last_comment_uid != 0, u2.name, ncs.last_comment_name) AS last_comment_name, ncs.last_comment_uid FROM node n INNER JOIN users u1 ON n.uid = u1.uid INNER JOIN term_node tn ON n.vid = tn.vid INNER JOIN node_comment_statistics ncs ON n.nid = ncs.nid INNER JOIN users u2 ON ncs.last_comment_uid=u2.uid LEFT JOIN node i18n ON n.tnid > 0 AND n.tnid = i18n.tnid AND i18n.language = 'fr' WHERE (n.language ='fr' OR n.language ='' OR n.language IS NULL OR n.language = 'en-working' AND i18n.nid IS NULL) AND ( n.status = 1 AND tn.tid = 6 )ORDER BY ncs.last_comment_timestamp DESC LIMIT 0, 1
803611 rfay_db localhost warmshowers Query 552 Copying to tmp table SELECT n.nid, n.title, l.comment_count FROM node n INNER JOIN term_node tn ON tn.vid = n.vid INNER JOIN term_data td ON td.tid = tn.tid INNER JOIN node_comment_statistics l ON n.nid = l.nid LEFT JOIN node i18n ON n.tnid
@rfay
rfay / rcg_register.info
Created December 13, 2011 17:39 — forked from anonymous/rcg_register.info
Modify user_register form to add custom form for adding to og_users_roles table.
name = RCG Register
description = Demonstrates how to alter the registration form with an AHAH element.
core = 6.x
@rfay
rfay / user_register_alter_example.info
Created December 7, 2011 10:55
Form alter the user form with AHAH
name = User register alter example
description = Demonstrates how to alter the registration form with an AHAH element.
core = 6.x
@rfay
rfay / gist:1398086
Created November 27, 2011 20:20
My nginx rewrite
server {
listen 80;
#server_name ~^($<domain>.*)\.l\/.*$;
server_name ~^(www\.)?(?<domain>.+)\.(l|bigsony|b)$;
#gzip off;
root /home/rfay/workspace/$domain;
fastcgi_read_timeout 1200;
fastcgi_send_timeout 1200;
client_max_body_size 128m;
/usr/bin/php ./scripts/run-tests.sh --concurrency 4 --php /usr/bin/php --url 'http://scratchtestbot-mysql.osuosl.test/checkout' --file sites/default/modules/ubercart/uc_cart/tests/uc_cart.test,sites/default/modules/ubercart/uc_cart_links/tests/uc_cart_links.test,sites/default/modules/ubercart/uc_attribute/tests/uc_attribute.test,sites/default/modules/ubercart/uc_product/tests/uc_product.test,sites/default/modules/ubercart/uc_order/tests/uc_order.test,sites/default/modules/ubercart/uc_store/tests/uc_store.test
Drupal test run
---------------
Tests to be run:
- Attribute API (UbercartAttributeTestCase)
- Cart and checkout (UbercartCartCheckoutTestCase)
- Cart Links (UbercartCartLinksTestCase)
- Cart settings (UbercartCartSettingsTestCase)
@rfay
rfay / gist:1230314
Created September 20, 2011 21:00
Add to cart fule
function commerce_installments_rules_action_info() {
$actions['commerce_installments_action_add_to_cart'] = array(
'label' => t('Add a product to the cart'),
'group' => t('Commerce Installments'),
'parameter' => array(
'product' => array(
'type' => 'commerce_product',
'label' => t('Product'),
),
'line_item_type' => array(
<?php
/**
* @file
* Commerce File License migration from uc_file_s3.
*/
/**
* TIP: Files can be migrated directly by themselves, by using the MigrateDestinationFile
* class. This will copy the files themselves from the source, and set up the
Error message
EntityMetadataWrapperException: Unable to load the commerce_order with the id 4792. in EntityDrupalWrapper->value() (line 697 of /home/rfay/workspace/commerce/sites/all/modules/entity/includes/entity.wrapper.inc). Backtrace:
EntityDrupalWrapper->value() entity.wrapper.inc:647
EntityDrupalWrapper->spotBundleInfo(1) entity.wrapper.inc:633
EntityDrupalWrapper->spotInfo() entity.wrapper.inc:323
EntityStructureWrapper->getPropertyInfo('owner') entity.wrapper.inc:385
EntityStructureWrapper->get('owner') entity.wrapper.inc:406
EntityStructureWrapper->__get('owner') commerce_file.entities.inc:895
commerce_file_license_revoke_line_item(Object) commerce_file.entities.inc:878