Skip to content

Instantly share code, notes, and snippets.

View wholroyd's full-sized avatar

William Holroyd wholroyd

  • Google
  • Raleigh, NC
View GitHub Profile
@wholroyd
wholroyd / github_clone.txt
Last active January 21, 2016 20:22
Ansible missing modules in 2.0.0.2
[wholroyd@wholroyd-fedora ansible]$ find ./*.py -printf "%f\n"
__init__.py
cloudtrail.py
dynamodb_table.py
ec2_ami_copy.py
ec2_elb_facts.py
ec2_eni.py
ec2_eni_facts.py
ec2_remote_facts.py
ec2_vpc_igw.py
@wholroyd
wholroyd / vbscript.json
Created January 14, 2016 19:59
vscode-vbscript
{
"comment": "Modified from the original ASP bundle. Originally modified by Thomas Aylott subtleGradient.com",
"fileTypes": [
"vbs",
"vbe",
"wsf",
"wsc",
"acm",
"acr",
"acf"
@wholroyd
wholroyd / output.txt
Last active September 17, 2015 02:21
xunit runner hanging after all tests ran/failed/skipped
xUnit.net DNX Runner (64-bit DNX 4.5.1)
Discovering: fake-dnx.tests
Discovered: fake-dnx.tests
Starting: fake-dnx.tests
fake_dnx.tests.HomeControllerTests.TestingTheDnxTestCommand [FAIL]
Assert.True() Failure
Expected: True
Actual: False
Stack Trace:
at fake_dnx.tests.HomeControllerTests.TestingTheDnxTestCommand () [0x00000] in <filename unknown>:0
@wholroyd
wholroyd / install-attempt2.txt
Last active July 15, 2020 17:50
Installing NextBSD on top of clean FreeBSD 10.x/11.x
## This was based on the 11.x image found at...
## ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/amd64/ISO-IMAGES/11.0/FreeBSD-11.0-CURRENT-amd64-20150917-r287930-disc1.iso
pkg install -y git
cd /usr/src
git clone http://github.com/nextbsd/nextbsd .
make buildworld
make buildkernel KERNCONF=GENERIC
make installkernel KERNCONF=GENERIC
@wholroyd
wholroyd / kestrel_failure.txt
Created August 4, 2015 14:36
Kestrel failure in Docker
[wholroyd@wholroyd-fedora fake-dnx]$ docker run -i -t a97703ea76ed
System.IO.FileNotFoundException: Could not load file or assembly 'Kestrel' or one of its dependencies. The system cannot find the file specified.
File name: 'Kestrel'
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName,System.Security.Policy.Evidence)
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName)
at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.Hosting.Server.ServerLoader.LoadServerFactory (System.String assemblyName) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.Hosting.Internal.HostingEngin
@wholroyd
wholroyd / failure.txt
Created July 31, 2015 23:04
Docker build on a DNX project failing on DNU restore
[wholroyd@wholroyd-fedora fake-dnx]$ docker build .
Sending build context to Docker daemon 2.561 MB
Sending build context to Docker daemon
Step 0 : FROM microsoft/aspnet
---> 3ad193895d0a
Step 1 : COPY /src/fake-dnx /app
---> Using cache
---> 677cc7cb7b1a
Step 2 : WORKDIR /app
---> Using cache
@wholroyd
wholroyd / nestedapps.js
Created June 19, 2015 18:57
Nested Express apps. How it should be.
// ### The Root application
// ./index.js <- lives here
// ./views/index.hbs <- the view
// ./catsApp <- child app
var express = require('express');
var app = express();
var exphbs = require('express-handlebars');
app.engine('hbs', exphbs({defaultLayout: 'single', extname: '.hbs'}));
app.set('view engine', 'hbs');
@wholroyd
wholroyd / EnumerateRemoteCertificates
Created April 2, 2015 15:14
EnumerateRemoteCertificates
X509Store store = new X509Store(@"\\machinename\MY", StoreLocation.LocalMachine);
@wholroyd
wholroyd / FoundationContext
Last active August 29, 2015 14:17
EntityFramework SavingChanges event
namespace Foundation.Data.Sql.EntityFramework
{
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using Foundation.Core.Abstractions;
using Foundation.Infrastructure.Common.Data;
public class FoundationContext : DbContext
<html>
<body onload="GetPromo()">
<SCRIPT LANGUAGE="JavaScript">
function GetPromo() {
var p = "24682";
var a = "47000";
var b = Math.random().toString().substr(3, 4);
var c = Math.random().toString().substr(7, 1);
prompt("Enjoy your coupon! :)", a + b + p + c);