This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOME=$OPENSHIFT_REPO_DIR | |
cd $OPENSHIFT_REPO_DIR | |
if ! which nvm >/dev/null; then | |
curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash | |
fi | |
source ~/.nvm/nvm.sh | |
nvm install v0.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"installed_packages": | |
[ | |
"All Autocomplete", | |
"AngularJS", | |
"CSS Format", | |
"EditorConfig", | |
"Git", | |
"GitGutter", | |
"Grunt", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var request = require('request'); | |
var Q = require('q'); | |
var fs = require('fs'); | |
var config = require('./config'); | |
var tokens = {}; | |
if (!config) { | |
config = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (c) 2014 Licensed under the MIT license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var Browser = require('zombie'); | |
function logResult(num, period) { | |
console.log('There were ' + parseInt(num.replace(' ', ''), 10) + ' downloads in the last ' + period); | |
} | |
Browser.visit('https://www.npmjs.org/package/zombie', function(e, browser) { | |
var lastDay = browser.querySelector('.downloads tr:nth-of-type(1) td'), | |
lastWeek = browser.querySelector('.downloads tr:nth-of-type(2) td'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change home directory (bower puts a lot of cache and tmp directories here) | |
HOME=$OPENSHIFT_REPO_DIR | |
cd $OPENSHIFT_REPO_DIR | |
mkdir -p "$OPENSHIFT_DATA_DIR"node_modules | |
ln -s "$OPENSHIFT_DATA_DIR"node_modules node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var tracer = require('tracer'); | |
var daily = tracer.dailyfile({ | |
format: '{{message}}', | |
root: './logs' | |
}); | |
var color = tracer.colorConsole({ | |
format: '{{message}}' | |
}); | |
var levels = ['log', 'trace', 'debug', 'info', 'warn', 'error']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: node-diy | |
Cartridge-Short-Name: NODEDIY | |
Display-Name: Node DIY | |
Description: "Node.js cartridge that lets you take the wheel" | |
Version: '0.10.32' | |
Source-Url: https://github.com/connyay/openshift-node-diy.git | |
License: "Apache v2" | |
License-Url: https://github.com/connyay/openshift-node-diy/blob/master/LICENSE | |
Cartridge-Version: 0.1 | |
Compatible-Versions: ['0.1'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# .openshift/action_hooks/build | |
# Change home directory (npm puts a lot of cache and tmp directories here) | |
HOME=$OPENSHIFT_REPO_DIR | |
cd $OPENSHIFT_REPO_DIR | |
if [ "$OPENSHIFT_GEAR_UUID"=="$OPENSHIFT_APP_UUID" ]; then | |
# Main gear - cache node_modules for quicker pushes | |
mkdir -p "$OPENSHIFT_DATA_DIR"node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
OlderNewer