Skip to content

Instantly share code, notes, and snippets.

View ezra-g's full-sized avatar

Ezra Gildesgame ezra-g

View GitHub Profile
@ezra-g
ezra-g / gist:1222133
Created September 16, 2011 13:29
test
<?php
Test
@ezra-g
ezra-g / gist:1348223
Created November 8, 2011 16:18 — forked from msonnabaum/gist:1306569
xhprof on mamp
wget http://pecl.php.net/get/xhprof-0.9.2.tgz
tar -xzf xhprof-0.9.2.tgz
cd xhprof-0.9.2/extension
/Applications/MAMP/bin/php5.3/bin/phpize
./configure
make
cp modules/xhprof.so $(/Applications/MAMP/bin/php5.3/bin/php-config --extension-dir)/
echo "extension=xhprof.so" >> /Applications/MAMP/conf/php5.3/php.ini
core = 6.x
api = 2
projects[drupal][version] = "6.22"
libraries[ckeditor][download][type] = "get"
libraries[ckeditor][destination] = "libraries"
libraries[ckeditor][download][url] = "http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.6.2/ckeditor_3.6.2.tar.gz"
libraries[ckeditor][directory_name] = "ckeditor"
libraries[ckeditor][patch][] = "http://drupal.org/files/1337004-ckeditor-remove-samples-4.patch"
Executing: cd '/var/folders/5y/vzhpphj12z1c0nnbcs1qbn1m0000gn/T/drush_make_tmp_1324062701_4eeb97ed3ac33/__build__/sites/all/libraries/ckeditor' && GIT_WORK_TREE=. git apply --check '-p1' '/var/folders/5y/vzhpphj12z1c0nnbcs1qbn1m0000gn/T/drush_make_tmp_1324062701_4eeb97ed3ac33/1337004-ckeditor-remove-samples-4.patch' --verbose
Executing: cd '/var/folders/5y/vzhpphj12z1c0nnbcs1qbn1m0000gn/T/drush_make_tmp_1324062701_4eeb97ed3ac33/__build__/sites/all/libraries/ckeditor' && GIT_WORK_TREE=. git apply '-p1' '/var/folders/5y/vzhpphj12z1c0nnbcs1qbn1m0000gn/T/drush_make_tmp_1324062701_4eeb97ed3ac33/1337004-ckeditor-remove-samples-4.patch' --verbose
Checking patch _samples/adobeair/application.xml... [notice]
Checking patch _samples/adobeair/run.bat...
Checking patch _samples/adobeair/run.sh...
Checking patch _samples/adobeair/sample.html...
Checking patch _samples/ajax.html...
Checking patch _samples/api
Executing: cd '/var/folders/5y/vzhpphj12z1c0nnbcs1qbn1m0000gn/T/drush_make_tmp_1324062701_4eeb97ed3ac33/__build__/sites/all/libraries/ckeditor' && GIT_WORK_TREE=. git apply --check '-p1' '/var/folders/5y/vzhpphj12z1c0nnbcs1qbn1m0000gn/T/drush_make_tmp_1324062701_4eeb97ed3ac33/1337004-ckeditor-remove-samples-4.patch' --verbose
Executing: cd '/var/folders/5y/vzhpphj12z1c0nnbcs1qbn1m0000gn/T/drush_make_tmp_1324062701_4eeb97ed3ac33/__build__/sites/all/libraries/ckeditor' && GIT_WORK_TREE=. git apply '-p1' '/var/folders/5y/vzhpphj12z1c0nnbcs1qbn1m0000gn/T/drush_make_tmp_1324062701_4eeb97ed3ac33/1337004-ckeditor-remove-samples-4.patch' --verbose
Checking patch _samples/adobeair/application.xml... [notice]
Checking patch _samples/adobeair/run.bat...
Checking patch _samples/adobeair/run.sh...
Checking patch _samples/adobeair/sample.html...
Checking patch _samples/ajax.html...
Checking patch _samples/api
MariaDB [d6]> select * from votingapi_vote where content_id = 9;
+---------+--------------+------------+-------+------------+--------+-----+------------+-------------+
| vote_id | content_type | content_id | value | value_type | tag | uid | timestamp | vote_source |
+---------+--------------+------------+-------+------------+--------+-----+------------+-------------+
| 36 | node | 9 | 1 | points | idea | 3 | 1326121564 | ::1 |
| 37 | node | 9 | 1 | points | idea | 1 | 1326121565 | ::1 |
| 46 | node | 9 | 1 | points | points | 1 | 1326137013 | ::1 |
| 56 | node | 9 | -1 | points | points | 3 | 1326148550 | ::1 |
+---------+--------------+------------+-------+------------+--------+-----+------------+-------------+
diff --git a/drush_make.project.inc b/drush_make.project.inc
index 76b71b2..f8f1514 100644
--- a/drush_make.project.inc
+++ b/drush_make.project.inc
@@ -292,7 +292,7 @@ class DrushMakeProject {
}
function recurse($path) {
- $makefile = $this->download_location . '/' . $this->name . '.make';
+ $makefile = $this->download_location . '/drupal_commons.make';
#!/bin/bash
#We check this out via here so we won't get a changelog in jenkins :(
echo "Building commons branch: $COMMONSBRANCH"
rm -rf commons_checkout
git clone --branch ${COMMONSBRANCH} git://git.drupal.org/project/commons.git commons_checkout
echo "Check out drush and drush make"
rm -rf drush
git clone --branch 7.x-4.x git://git.drupal.org/project/drush.git drush
#!/bin/bash
#We check this out via here so we won't get a changelog in jenkins :(
echo "Building commons branch: $COMMONSBRANCH"
rm -rf commons_checkout
git clone --branch ${COMMONSBRANCH} git://git.drupal.org/project/commons.git commons_checkout
echo "Check out drush and drush make"
rm -rf drush
git clone --branch 7.x-4.x git://git.drupal.org/project/drush.git drush
<?php
class og_statistics_handler_filter_posts_count extends views_handler_filter_boolean_operator {
function option_definition() {
$options = parent::option_definition();
$options['value'] = array('default' => 1);
return $options;
}
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);