Skip to content

Instantly share code, notes, and snippets.

View localnerve's full-sized avatar

Alex Grant localnerve

View GitHub Profile
@localnerve
localnerve / gist:9774237
Created March 26, 2014 00:08
Nodejitsu Does Not Support Phantomjs Because Phantomjs doesn't have binary for SunOS
> [email protected] install /root/tmp/tmp-273669ta2t68/build/package/node_modules/html-snapshots/node_modules/phantomjs
> node install.js
Unexpected platform or architecture: sunos x64
npm http 200 https://registry.nodejitsu.com/pause/0.0.1
npm http 200 https://registry.nodejitsu.com/uid2/0.0.2
npm http 200 https://registry.nodejitsu.com/bytes/0.2.0
npm http GET https://registry.nodejitsu.com/uid2/-/uid2-0.0.2.tgz
npm http 200 https://registry.nodejitsu.com/formidable/1.0.14
npm http 200 https://registry.nodejitsu.com/qs/0.6.5
@localnerve
localnerve / gist:9722582
Created March 23, 2014 12:44
jitsu deployment package.json
{
"name": "WPSPA",
"version": "0.1.0-1",
"author": "Alex Grant <[email protected]>",
"description": "A Single Page Application using Wordpress",
"contributors": [
{
"name": "Alex Grant",
"email": "[email protected]"
}
@localnerve
localnerve / gist:9718776
Last active August 29, 2015 13:57
jitsu deployment error 2014-03-23
info: Welcome to Nodejitsu localnerve
info: jitsu v0.13.15, node v0.10.26
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /home/agrant/var/www/content/wpspa/dist/release/package.json
data:
data: {
@localnerve
localnerve / tfscheckout
Last active May 12, 2016 20:28
Example of using TFS with Grunt (not that you would want to do this, but it can work). Employs the grunt-shell task so that TFS targets play well with other tasks that spawn (like grunt-contrib-compass).
//
// Example showing how to use TFS with grunt.
// Plays well with grunt-contrib-compass and other tasks that spawn processes.
// This example only shows tf checkout, but you could reuse this pattern to add more tf commands.
//
// Gist by https://github.com/localnerve, http://www.localnerve.com
//
var path = require("path");
module.exports = function(grunt) {