Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sman591
sman591 / log.txt
Created September 24, 2015 20:40
cyrusstoller/RevTilt #49
INFO [4ca87eb3] Running /usr/bin/env mv /var/www/app/releases/current /var/www/app as deployer@{FQDN}
DEBUG [4ca87eb3] Command: ( RAILS_ENV=production RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 /usr/bin/env mv /var/www/app/releases/current /var/www/app )
INFO [4ca87eb3] Finished in 0.004 seconds with exit status 0 (successful).
INFO [763ac268] Running /usr/bin/env sudo /etc/init.d/unicorn_app.sh restart as deployer@{FQDN}
DEBUG [763ac268] Command: ( RAILS_ENV=production RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 /usr/bin/env sudo /etc/init.d/unicorn_app.sh restart )
DEBUG [763ac268] Couldn't restart, starting 'RAILS_ENV=production RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 BUNDLE_GEMFILE=/var/www/app/current/Gemfile ~/.rbenv/bin/rbenv exec bundle exec /var/www/app/current/bin/unicorn -D
-c /var/www/app/current/config/unicorn.rb -E production' instead
DEBUG [763ac268]
DEBUG [763ac268] bundler: command not found: /var/www/app/current/bin/unicorn
DEBUG [763ac268]
@sman591
sman591 / Contract Killer 3.md
Last active December 25, 2015 22:39 — forked from malarkey/Contract Killer 3.md
Modified version of Contract Killer 3 for my own use

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@sman591
sman591 / Gemfile
Last active January 26, 2017 23:39
Guard error
source 'https://rubygems.org'
ruby IO.read(File.expand_path("../.ruby-version", __FILE__)).chomp
gem 'rails', '~> 5.0.0'
gem 'mysql2'
gem 'puma'
gem 'rails_12factor', group: :production
@sman591
sman591 / index.jsx
Last active March 7, 2017 18:04
PNotify with Webpack
// React components
import React from 'react';
import ReactDOM from 'react-dom';
// Third party resources
import $ from 'jquery';
import PNotify from 'pnotify';
// Ensure required globals are available
window.$ = $;
@sman591
sman591 / Selectize.jsx
Last active August 22, 2017 21:04 — forked from heyimalex/Selectize.jsx
React wrapper around Selectize.js using ES6 and JSX
import React, { Component } from 'react';
// Wrapper around the selectize jQuery plugin.
export default class Selectize extends Component {
shouldComponentUpdate(nextProps) {
const self = this;
const shouldUpdate = Object.keys(nextProps).some(function(propName) {
// If it's handled, we'll deal with it on our own.
if (propName in handledProps) return false;