Skip to content

Instantly share code, notes, and snippets.

// Karma configuration
// Generated on Tue Sep 16 2014 09:05:25 GMT-0700 (PDT)
var webpackConfig = require('./webpack.config');
webpackConfig.watch = true;
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
git archive --remote=../package-repo/.git/ HEAD ../package-dir
npm install ../package-dir
npm-shrinkwrap
Caret ranges are ideal when an author may make breaking changes
between `0.2.4` and `0.3.0` releases, which is a common practice.
However, it presumes that there will *not* be breaking changes between
`0.2.4` and `0.2.5`. It allows for changes that are presumed to be
additive (but non-breaking), according to commonly observed practices.
* `^1.2.3` := `>=1.2.3 <2.0.0`
* `^0.2.3` := `>=0.2.3 <0.3.0`
* `^0.0.3` := `>=0.0.3 <0.0.4`
* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in
@marr
marr / -
Created March 26, 2015 05:02
#!/bin/bash
file1=/srv/site/current/REVISION
file2=/srv/api/current/REVISION
file3=/srv/www/current/REVISION
for host in staging-api{1..3}; do
ssh $host 'printf "host: %s site: %s api: %s www: %s\n" "$host" "$(<file1)" "$(<file2)" "$(<file3)"'
done
#!/bin/bash
c() {
for host in staging-api{1..3}; do
printf "host: $host\t"
ssh $host 'printf "site: %s api: %s www: %s\n" "$(</srv/site/current/REVISION)" "$(</srv/api/current/REVISION)" "$(</srv/www/current/REVISION)"'
done
}
@marr
marr / -
Created March 26, 2015 22:44
$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Using rake 10.4.2
Using CFPropertyList 2.3.0
Using sass 3.4.13
Using thor 0.19.1
Using bourbon 4.2.1
Using builder 3.2.2
Using capistrano-stats 1.1.1
@marr
marr / -
Created March 26, 2015 22:48
and sudo mkdir worked
Making gemset ruby-2.1.5 pristine..........................................................................
Error running '__rvm_with ruby-2.1.5 gemset_pristine',
showing last 15 lines of /Users/dmarr/.rvm/log/1427410050_ruby-2.1.5/gemset.pristine-ruby-2.1.5.log
++ _failed+=("${_gem} --version ${_version}")
++ read _gem _version _platforms
++ (( 1 > 0 ))
++ rvm_error '\n'\''command gem pristine --extensions nokogiri --version 1.6.5'\'' failed, you need to fix this gems manually.'
++ rvm_pretty_print stderr
++ case "${rvm_pretty_print_flag:=auto}" in
74c74
< "modified": "2015-03-30T18:21:04Z",
---
> "modified": "2014-07-25T18:10:23Z",
117c117
< "description_raw": "From the beginning, this has been a grassroots campaign - now, we have a new way to stay in touch with our grassroots volunteers and supporters! We've created a great mobile app to help people stay in touch with the campaign - now we need your help to launch it and keep it running. If we can hit $1000 in the next week, the app will be AVAILABLE FOR DOWNLOAD for a month - and the more we raise, the longer we can keep it up! \n\nThis is a groundbreaking development - and will be a groundbreaking tool in terms of our grassroots efforts. \n\nHere's a taste of what our app will include- \n\n- Breaking news alerts\n- First look at our new campaign commercials and videos \n- Behind the scenes photos\n- Information on how, when, and where to volunteer\n- A convenient donation button, courtesy of our finance team \n\nWe look forward to launching the app, and we thank you for your
var util = require('util');
var debug = require('debug')('createFacebookTestUser');
var events = require('events');
var Promise = require('bluebird');
var request = Promise.promisify(require('request'));
var CreateFacebookTestUser = function() {
events.EventEmitter.call(this);
};
util.inherits(CreateFacebookTestUser, events.EventEmitter);
TestUtils.renderLightbox = function(dispatcher, lightboxDefn, opt_location, callback) {
var Foo = React.createClass({
getChildContext: function() {
return { dispatcher: dispatcher };
},
childContextTypes: {
dispatcher: React.PropTypes.object.isRequired
},