Skip to content

Instantly share code, notes, and snippets.

View JonCubed's full-sized avatar

Jonathan Kuleff JonCubed

View GitHub Profile
@JonCubed
JonCubed / temp.cake
Created November 15, 2017 10:30
temp.cake
#addin nuget:D:\packages?package=Cake.Microsoft.Extensions.Configuration&version=0.1.0-alpha015&loaddependencies=true&prerelease
#addin "nuget:?package=Cake.Incubator&version=1.6.0&loaddependencies=true"
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
MySettings settings;
private class MySettings
@JonCubed
JonCubed / gist:fbf0ed6a134be9bdbd35f1152c081877
Last active January 18, 2017 22:44
Sample BoxStarter Script
# START http://boxstarter.org/package/url?https://gist.githubusercontent.com/JonCubed/fbf0ed6a134be9bdbd35f1152c081877/raw/929cbf6c722b64ed242c1b7196baebc7fb1c2ade/gistfile1.txt
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
Disable-BingSearch #Disables the Bing Internet Search when searching from the search field in the Taskbar or Start Menu.
Enable-RemoteDesktop #Allows Remote Desktop access to machine and enables Remote Desktop firewall rule.
<#
#OPTIONAL
** Windows 7 **
Should upgrade to WMF 5 first for reduced errors
https://www.microsoft.com/en-us/download/details.aspx?id=50395
# If Dev Machine
param
(
[Switch]
$InstallDev = $false,
[Switch]
$InstallHome = $false,
[String]
$DataDrive,
<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment">
<BundleCustomizations TargetDir="C:\Program Files (x86)\Microsoft Visual Studio 14.0" NoCacheOnlyMode="default" NoWeb="default" NoRefresh="default" SuppressRefreshPrompt="default" Feed="default" />
<SelectableItemCustomizations>
<SelectableItemCustomization Id="VSUV3RTMV1" Hidden="no" Selected="yes" FriendlyName="Visual Studio 2015 Update 3" />
<SelectableItemCustomization Id="MicroUpdateV3.1" Selected="yes" FriendlyName="Update for Microsoft Visual Studio 2015 (KB3165756)" />
<SelectableItemCustomization Id="NativeLanguageSupport_VCV1" Hidden="no" Selected="yes" FriendlyName="Common Tools for Visual C++ 2015" />
<SelectableItemCustomization Id="Win81SDK_HiddenV1" Hidden="no" Selected="yes" FriendlyName="Windows 8.1 SDK and Universal CRT SDK" />
<SelectableI
param
(
[Switch]
$InstallDev = $false,
[Switch]
$InstallHome = $false,
[String]
$DataDrive,
@JonCubed
JonCubed / box.ps1
Last active February 11, 2020 02:21
Testing Boxstarter configuration
<#
#OPTIONAL
** Windows 7 **
Should upgrade to WMF 5 first for reduced errors
https://www.microsoft.com/en-us/download/details.aspx?id=50395
# If Dev Machine
[Environment]::SetEnvironmentVariable("BoxStarter:InstallDev", "1", "Machine") # for reboots
Server Error in '/' Application.
Type 'System.Collections.Immutable.ImmutableStack`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' in Assembly 'NewRelic.Providers.CallStack.AsyncLocal, Version=5.12.13.0, Culture=neutral, PublicKeyToken=f7f92cc5c2dc8743' is not marked as serializable.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.Serialization.SerializationException: Type 'System.Collections.Immutable.ImmutableStack`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' in Assembly 'NewRelic.Providers.CallStack.AsyncLocal, Version=5.12.13.0, Culture=neutral, PublicKeyToken=f7f92cc5c2dc8743' is not marked as serializable.
Source Error:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'LibSassHost.Native-32' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'LibSassHost.Native-32' could not be loaded.
@JonCubed
JonCubed / packer-debug-20151220-2241.log
Created December 20, 2015 11:41
packer debugging, restart windows provisioner failed
2015/12/20 22:17:04 [INFO] Packer version: 0.8.6 f8f7b7a34c1be06058f5aca23a51247db12cdbc5+CHANGES
2015/12/20 22:17:04 Packer Target OS/Arch: windows amd64
2015/12/20 22:17:04 Built with Go Version: go1.5
2015/12/20 22:17:04 [DEBUG] Discovered plugin: amazon-chroot = C:\tools\packer_0.8.6\packer-builder-amazon-chroot.exe
2015/12/20 22:17:04 [DEBUG] Discovered plugin: amazon-ebs = C:\tools\packer_0.8.6\packer-builder-amazon-ebs.exe
2015/12/20 22:17:04 [DEBUG] Discovered plugin: amazon-instance = C:\tools\packer_0.8.6\packer-builder-amazon-instance.exe
2015/12/20 22:17:04 [DEBUG] Discovered plugin: digitalocean = C:\tools\packer_0.8.6\packer-builder-digitalocean.exe
2015/12/20 22:17:04 [DEBUG] Discovered plugin: docker = C:\tools\packer_0.8.6\packer-builder-docker.exe
2015/12/20 22:17:04 [DEBUG] Discovered plugin: file = C:\tools\packer_0.8.6\packer-builder-file.exe
2015/12/20 22:17:04 [DEBUG] Discovered plugin: googlecompute = C:\tools\packer_0.8.6\packer-builder-googlecompute.exe