Skip to content

Instantly share code, notes, and snippets.

View KevM's full-sized avatar

Kevin Miller KevM

View GitHub Profile
@KevM
KevM / install.md
Last active August 29, 2015 14:13
Installing Dovetail Seeker (with ARR proxy)

Installing Dovetail Seeker

Setup IIS

  • Install IIS role on your Windows Server if it is not already present.
  • Add IIS 6 Compatibility feature
  • Launch WPI
@KevM
KevM / readme.md
Created October 2, 2014 17:42
Agent Customization Migration Guide

Migrating Lionbridge To Agent Baseline

Getting Started

We've setup an Agent Git repository for on GitHub.

Security: Please let us know what GitHub usernames you'd like to have access to this repository.

Setting up Git

If you are not used to GitHub or Git checkout their excellent setup guide for help. This will take your through:

@KevM
KevM / keybase.md
Created September 17, 2014 20:00
Keybase identity proof

Keybase proof

I hereby claim:

  • I am kevm on github.
  • I am kevm (https://keybase.io/kevm) on keybase.
  • I have a public key whose fingerprint is 1B03 5C99 970E B154 6878 64B7 0D86 4233 3977 188F

To claim this, I am signing this object:

@KevM
KevM / CoupV3.js
Last active August 29, 2015 14:05
Wonder Coup Automate!
var b = require('bonescript');
var SunCalc = require('suncalc');
// Set Beagles GPIO pin moodes
var DoorOpen = "P8_13";
var DoorClose = "P8_14";
var DoorOpenBtn = "P8_15";
var DoorCloseBtn = "P8_16";
b.pinMode(DoorOpen, b.OUTPUT);
b.pinMode(DoorClose, b.OUTPUT);
@KevM
KevM / EmployeeTemplatePolicyExpression.cs
Last active August 29, 2015 14:04
Dovetail History Builder Customization Example
public class EmployeeActEntryTemplatePolicy : ActEntryTemplatePolicyExpression {
public EmployeeActEntryTemplatePolicy(IHistoryOutputParser historyOutputParser) : base(historyOutputParser)
{
}
protected override void DefineTemplate(WorkflowObject workflowObject)
{
if (workflowObject.Type != "employee")
{
//This policy only cares about employee objects. If we didn't add this guard clause these policies would be present
@KevM
KevM / userStatus.spark
Created July 10, 2014 21:07
userStatus.spark
<viewdata model="Web.api.UserStatusModel"/>
<use namespace="FubuCore"/>
<ul class="nav unstyled" id="primary-tasks" if="Model.IsAuthenticated">
<li if="Model.CanCreateCase">
<a class="create-case-action" href="${ this.Urls.UrlFor(new Agent.Support.api.Cases.CreateCaseRequest()) }">${ Agent.Shared.Core.SharedCoreKeys.CREATE } ${ Agent.Shared.Core.SharedCoreKeys.CASE }</a>
</li>
<li class="dropdown" if="Model.CanCreateCase || Model.CanCreateContact || Model.CanCreateSite || Model.CanCreateSolution">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
${ Agent.Shared.Core.SharedCoreKeys.CREATE } <span class="caret"></span>
@KevM
KevM / animal.schemascript.xml
Last active August 29, 2015 14:02
Adding Attachments to a Custom Entity
<schemaScript xmlns="http://www.dovetailsoftware.com/2006/10/SchemaScript.xsd">
<addTable name="animal" id="4921">
<groupName>Test</groupName>
<description>Test of adding attachments to custom entities.</description>
</addTable>
<addColumn name="objid" dataType="Integer" table="animal">
<description>Internal record number</description>
<clarifyGenericFieldID>3</clarifyGenericFieldID>
</addColumn>
@KevM
KevM / test.cs
Created June 3, 2014 15:27
FubuMVC Integration testing
[Test]
public void home_endpoint_should_return_document_specifications()
{
using (var server = new WebApplication().BuildApplication().RunEmbedded())
{
var results = server.Endpoints.Get<HomeEndpoint>(x => x.Execute(new HomeRequest()))
.ReadAsJson<SpecificationListViewModel>();
results.SpecificationDocumentCount.ShouldBeGreaterThan(0);
}
@KevM
KevM / FubuRegistry.cs
Created April 25, 2014 17:03
Getting FubuValidation to apply to more than just POST endpoints
public class ConfigureFubuMVC : FubuRegistry
{
public ConfigureFubuMVC()
{
// ....
AlterSettings<ValidationSettings>(e =>
{
e.Where.RespondsToHttpMethod("PUT", "POST", "DELETE").And.Matching(new HasInputType());
});
@KevM
KevM / 1_initial.md
Last active August 29, 2015 13:57
Overdrive Case Initial Contact

Your case (00326056) history details...

THE ISSUE:

  1. Category: Software Issue

  2. Description: After upgrading from an earlier version of Overdrive Media Console to version 1.1.1 on my Macbook (OSX 10.9.2) I cannot launch the application. I get an error. The details of that are entered below. ss

  3. Pressing either button from the error dialog simply does nothing. The Activity Monitor shows the overdrive console process exiting shortly after one of these options is pressed.