Skip to content

Instantly share code, notes, and snippets.

Sachas-MacBook-Pro:Sidebar sacha$ git push stackful old-sidebar:master
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 345 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: From /home/git/node-web
remote: * branch master -> FETCH_HEAD
remote: HEAD is now at cc71b32 test
remote: Deploying a Meteor app...
Errors prevented bundling:
Exception while bundling application:
Error: Parse error - line 1, file /home/ubuntu/discovermeteor/bundle/app/packages/mailchimp/node_modules/mailchimp/node_modules/request/node_modules/node-uuid/test/test.html
<html>
at parseError (/home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/packages/templating/html_scanner.js:23:14)
at Object.html_scanner.scan (/home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/packages/templating/html_scanner.js:36:15)
at /home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/packages/templating/package.js:44:32
at _.extend.add_file (/home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/tools/bundler.js:210:7)
at self.api.add_files (/home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/tools/bundler.js:126:16)
at Array.forEach (native)
0: "<%= commit "11-2", "Display notifications in the header." %>"
1: "commit"
2: " "Display notifications in the header.""
3: "Display notifications in the header."
index: 7352
input: "..."
-----> Ruby/Rack app detected
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Fetching [email protected]:hull/hull-ruby.git
Host key verification failed.
fatal: The remote end hung up unexpectedly
Git error: command `git clone '[email protected]:hull/hull-ruby.git'
"/tmp/build_3k5zpujuyojzf/vendor/bundle/ruby/1.9.1/cache/bundler/git/hull-ruby-66c224246466df82288c5430f3bf07c3c982c569"
#!/bin/sh
cd Sidebar
git pull
sudo mrt bundle /home/meteor/bundle.tgz
cd ..
#!/bin/sh
killall node
#NODE_ARGS="--prof --prof_lazy --log"
#NODE_ARGS="--prof --log"
#!/bin/sh
RC=1
var Posts = new Meteor.Collection('posts');
if (Meteor.isClient) {
Template.posts.helpers({
posts: function() {
return Posts.find();
}
})
}
// specific router functions
digest = function(year, month, day, view){
var destination = (typeof view === 'undefined') ? 'posts_digest' : 'posts_digest_'+view
var currentDate = new Date();
if (typeof day !== 'undefined') {
currentDate = new Date(year, month-1, day)
}
Session.set('currentDate', currentDate);
// we need to make sure that the session changes above have been executed
// before we can look at the digest handle. XXX: this might be a bad idea
currentDigestHandle();
currentDigestHandle().loading();
currentMDateForDigest().toString();
@SachaG
SachaG / gist:4258728
Created December 11, 2012 13:51
GoSquared Telescope Snippet
// GoSquared
if (goSquaredId = getSetting("goSquaredId")) {
var GoSquared = {};
GoSquared.acct = goSquaredId;
window._gstc_lt = +new Date;
var d = document, g = d.createElement("script");
g.type = "text/javascript";
g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
var s = d.getElementsByTagName("script")[0];
s.parentNode.insertBefore(g, s);