Install Homebrew
Install a few things with homebrew:
Notice that some packages give you information at the end, read it carefully. To recall that info use brew info like this: $ brew info postgresql
$ brew install python --universal
Install Homebrew
Install a few things with homebrew:
Notice that some packages give you information at the end, read it carefully. To recall that info use brew info like this: $ brew info postgresql
$ brew install python --universal
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/bin/sh | |
| # | |
| # An example hook script to check the commit log message. | |
| # Called by "git commit" with one argument, the name of the file | |
| # that has the commit message. The hook should exit with non-zero | |
| # status after issuing an appropriate message if it wants to stop the | |
| # commit. The hook is allowed to edit the commit message file. | |
| # | |
| # To enable this hook, rename this file to "commit-msg". |
| // Check existence | |
| function exists(thing) { | |
| return (!isNaN(thing) && typeof thing !== 'undefined' && thing !== null) ? thing : undefined; | |
| } | |
| // Or, more tersely | |
| function exists(thing) { | |
| // != checks `null` and `undefined` | |
| return thing != null ? thing : undefined; | |
| } |
| SELECT n.nid, n.title, fc.count | |
| FROM node n | |
| INNER JOIN flag_counts fc ON fc.content_id = n.nid | |
| ORDER BY fc.count DESC | |
| LIMIT 20; | |
| 691078 Field tokens 350 | |
| 1499460 [meta] New theme system 221 | |
| 494100 State of the multigroup module 218 |
| <?php | |
| function entity_get_operation_links($entity_type, $entity, $base_path = NULL) { | |
| $build = array( | |
| '#theme' => 'links__operations__' . $entity_type, | |
| '#links' => array(), | |
| '#attributes' => array('class' => array('links inline')), | |
| ); | |
| list($entity_id) = entity_extract_ids($entity_type, $entity); |
| <?php | |
| /** | |
| * @file Update script for image cache changes related to drupal 7.20 | |
| * | |
| * You will likely need to adjust the regexp and the $search and $replace | |
| * variables in cleanup(). Note that image_style_path_token generates | |
| * different tokens for different paths so you need to properly detect your | |
| * site URLs and rewrite them in the most robust pattern for your site. | |
| * | |
| * The existing patterns work with patterns like the following; |
| <?php | |
| namespace Codeception\Module; | |
| /** | |
| * Additional methods for DB module | |
| * | |
| * Save this file as DbHelper.php in _support folder | |
| * Enable DbHelper in your suite.yml file | |
| * Execute `codeception build` to integrate this class in your codeception | |
| */ |
| #!/bin/sh | |
| # exit on any errors: | |
| set -e | |
| if [ $# -lt 1 ] | |
| then | |
| echo "Usage: $0 @pantheon-alias" | |
| exit 1 | |
| fi |