Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Smith mtscout6

  • Willis Towers Watson
  • Salt Lake City, UT
View GitHub Profile
@mtscout6
mtscout6 / SimpleTopic.cs
Created Oct 27, 2012
Simple Inherited Topic for FubuMVC.ServerSentEvents
View SimpleTopic.cs
public class SimpleTopic : Topic
{
public Guid SomeId { get; set; }
public override bool Equals(object obj)
{
return Equals(obj as SimpleTopic );
}
public bool Equals(SimpleTopic other)
@mtscout6
mtscout6 / Does not work
Created Aug 11, 2014
react-router Route organization question
View Does not work
/** @jsx React.DOM */
var React = require('react');
var Router = require('../../index');
var Route = Router.Route;
var Routes = Router.Routes;
var Link = Router.Link;
var App = React.createClass({
render: function() {
return (
@mtscout6
mtscout6 / gist:a31298e1dcc5acf5863c
Created Oct 14, 2014
Jenkins server with custom plugin set failure.
View gist:a31298e1dcc5acf5863c
➜ jenkins-docker git:(master) ✗ docker logs -f cea
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Oct 10, 2014 6:44:26 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Oct 10, 2014 6:44:26 PM winstone.Logger logInternal
INFO: Winstone shutdown successfully
Oct 10, 2014 6:44:26 PM winstone.Logger logInternal
SEVERE: Container startup failed
java.lang.SecurityException: SHA-256 digest error for WEB-INF/plugins/ssh-slaves.hpi
@mtscout6
mtscout6 / gist:eaddbb967664cb48be8e
Created Dec 1, 2014
Note time between log statements
View gist:eaddbb967664cb48be8e
09:02:25.204 INFO - Started HttpContext[/,/]
09:05:58.688 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@1c664c4f
View gist:926e80dbb69edae421a4
FROM selenium/node-firefox:2.44.0
COPY config.json /opt/selenium/config.json
@mtscout6
mtscout6 / Panel.js
Created Feb 27, 2015
Potential TODOs for the Panel Component in react-bootstrap
View Panel.js
var React = require('react');
var joinClasses = require('./utils/joinClasses');
var classSet = require('./utils/classSet');
var cloneWithProps = require('./utils/cloneWithProps');
var BootstrapMixin = require('./BootstrapMixin');
var CollapsableMixin = require('./CollapsableMixin');
// TODO: Evaluate extracting collapsable logic to CollapsablePanel, The
// Accordian would likewise manage collapsed state itself.
View gist:37a9355c4fcea358ece4
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
Step 0 : FROM selenium/node-base:2.44.0
@mtscout6
mtscout6 / Inside-Company-Firewall.txt
Last active Aug 29, 2015
Error setting up kubernetes with vagrant.
View Inside-Company-Firewall.txt
➜ kubernetes ./cluster/kube-up.sh
Starting cluster using provider: vagrant
... calling verify-prereqs
... calling kube-up
Using credentials: vagrant:vagrant
Bringing machine 'master' up with 'virtualbox' provider...
Bringing machine 'minion-1' up with 'virtualbox' provider...
==> master: Importing base box 'kube-fedora21'...
==> master: Matching MAC address for NAT networking...
==> master: Setting the name of the VM: kubernetes_master_1438188958419_38582
View npm aliases
# This file was generated by /Users/smithm/dev/new-dotfiles/npm-module-aliases
# Generated: Friday, October 2nd, 2015 @ 14:55:31
alias npm-exec="PATH=$(npm bin):$PATH"
alias _mocha="npm-exec _mocha"
alias babel="npm-exec babel"
alias babel-external-helpers="npm-exec babel-external-helpers"
alias babel-node="npm-exec babel-node"
alias babel-plugin="npm-exec babel-plugin"
@mtscout6
mtscout6 / shell
Created Jan 26, 2016
Expected Jira Git Commit Hook Output
View shell
➜ tw-hubot git:(master) git commit -m "Some commit message TW-8156" <-- Your command line execution to commit your code
[jira-precommit-hook] Commit message successfully verified. <-- Confirmation message from the commit hook
[master 5361b4f] Some commit message TW-8156 <-- Confirmation message from git that the commit succeeded (NOT THE COMMIT HOOK)