Skip to content

Instantly share code, notes, and snippets.

View chrisns's full-sized avatar

Chris Nesbitt-Smith chrisns

View GitHub Profile
@chrisns
chrisns / tcmessages.py
Created June 26, 2014 17:06
pycharm tcmessages.py fix
import sys
class TeamcityServiceMessages:
quote = {"'": "|'", "|": "||", "\n": "|n", "\r": "|r", ']': '|]'}
messages = []
def __init__(self, output=sys.stdout, prepend_linebreak=False, buffer_output=True):
self.output = output
self.prepend_linebreak = prepend_linebreak
self.buffer_output = buffer_output
diff --git resources/node_resource.inc resources/node_resource.inc
index 1454a2d..fa9dce3 100644
--- resources/node_resource.inc
+++ resources/node_resource.inc
@@ -92,7 +92,7 @@ function _node_resource_definition() {
),
),
'access arguments' => array('access content'),
- 'access arguments append' => TRUE,
+ // 'access arguments append' => TRUE,
diff --git resources/node_resource.inc resources/node_resource.inc
index 1454a2d..8763d0d 100644
--- resources/node_resource.inc
+++ resources/node_resource.inc
@@ -92,7 +92,7 @@ function _node_resource_definition() {
),
),
'access arguments' => array('access content'),
- 'access arguments append' => TRUE,
diff --git run-tests.sh run-tests.sh
index bcc5095..e0022fd 100755
--- run-tests.sh
+++ run-tests.sh
@@ -387,7 +387,11 @@ function simpletest_script_command($concurrency, $test_id, $tests) {
$command .= ' --color';
}
$command .= " --php " . escapeshellarg($php) . " --concurrency $concurrency --test-id $test_id --execute-batch $tests";
- passthru($command);
+ passthru($command, $output);
diff --git run-tests.sh run-tests.sh
index bcc5095..e0022fd 100755
--- run-tests.sh
+++ run-tests.sh
@@ -387,7 +387,11 @@ function simpletest_script_command($concurrency, $test_id, $tests) {
$command .= ' --color';
}
$command .= " --php " . escapeshellarg($php) . " --concurrency $concurrency --test-id $test_id --execute-batch $tests";
- passthru($command);
+ passthru($command, $output);
diff --git strongarm.drush.inc strongarm.drush.inc
new file mode 100644
index 0000000..bf90882
--- /dev/null
+++ strongarm.drush.inc
@@ -0,0 +1,6 @@
+<?php
+
+// insure a full bootstrap on update batch processes so strongarm can do initalize and set variables and anything else it needs to do
+function drush_strongarm_pre_updatedb_batch_process() {
@chrisns
chrisns / gist:1131944
Created August 8, 2011 15:22
workflow patch to disable static cache in initial migration
diff --git workflow.module workflow.module
index de9becd..01b7033 100644
--- workflow.module
+++ workflow.module
@@ -753,7 +753,10 @@ function workflow_node_current_state($node) {
* The ID of the workflow.
*/
function _workflow_creation_state($wid) {
- static $cache;
+ global $initial_migration;
diff U domain_rules.rules.inc domain_rules.rules.inc
--- domain_rules.rules.inc Mon Jan 19 22:26:36 1970
+++ domain_rules.rules.inc Mon Jan 19 22:26:36 1970
@@ -40,0 +41,11 @@
+ 'rules_action_remove_node_domain' => array(
+ 'label' => t('Remove domain from a node'),
+ 'module' => 'Domain',
+ 'arguments' => array(
+ 'node' => array(
+ 'type' => 'node',
--- modules/statistics/statistics.module Tue Sep 27 12:22:41 2011
+++ modules/statistics/statistics.module Mon Sep 26 12:32:40 2011
@@ -46,0 +47,9 @@
+ /*
+ *
+ * Disabled as this is no longer created by drupal.
+ *
+ * Just use analytics and get stats using cron
+ *
+ * bl_tools/update_pageviews_analytics
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/cns/workspace/bip-dev-1/build
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/cns/workspace/bip-dev-1/build/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride All