Skip to content

Instantly share code, notes, and snippets.

View llaughlin's full-sized avatar

Logan Laughlin llaughlin

View GitHub Profile
@llaughlin
llaughlin / Readme.md
Last active July 27, 2020 19:12
Boxstarter Server 2019

Execution instructions:

$cred = Get-Credential LLaughlinHV\Admin
$boxVm = Enable-BoxstarterVM -VmName LLaughlinHV -Credential $cred


$scriptUrl = "https://gist.githubusercontent.com/llaughlin/7be7bd8eaccb5edbc8ad16b50977aee9/raw/b543db14178f502bda3f3a0280ed0db7850790ad/HyperVSetup.ps1"

$objectBrowserUrl = "https://gist.githubusercontent.com/llaughlin/7be7bd8eaccb5edbc8ad16b50977aee9/raw/af26c39aca10c7b084fb6fd456a6617e2c157776/PSObjectBrowser.psm1"
@llaughlin
llaughlin / MethodEnricher.cs
Created January 13, 2020 22:07
Serilog - Log SourceMethod and SourceFile
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Serilog.Core;
using Serilog.Events;
namespace Logging.Enrichers
{
public class MethodEnricher : ILogEventEnricher
{
@llaughlin
llaughlin / HyperVSetup.ps1
Last active May 20, 2019 15:34
HyperV Boxstarter Setup
#region Execution instructions:
# - $cred = Get-Credential LLaughlinHV\Admin
# - $boxVm = Enable-BoxstarterVM -VmName LLaughlinHV -Credential $cred
# - $scriptUrl = "https://gist.githubusercontent.com/llaughlin/7be7bd8eaccb5edbc8ad16b50977aee9/raw/b543db14178f502bda3f3a0280ed0db7850790ad/HyperVSetup.ps1"
# - $objectBrowserUrl = "https://gist.githubusercontent.com/llaughlin/7be7bd8eaccb5edbc8ad16b50977aee9/raw/af26c39aca10c7b084fb6fd456a6617e2c157776/PSObjectBrowser.psm1"
# - $boxVm | Install-BoxstarterPackage -PackageName $scriptUrl
@llaughlin
llaughlin / !Snippet Collection.md
Last active April 8, 2019 13:47
dotnet Extensions

Collection of extensions and code fragments.

@llaughlin
llaughlin / VSTS Migration.md
Last active May 9, 2018 17:27
VSTS Migration
@llaughlin
llaughlin / npm-debug.log
Created September 18, 2015 16:19
Maximum call stack size exceeded on `npm publish`
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/local/bin/node
5 verbose publish [ '.' ]
6 silly cache add args [ '.', null ]
7 verbose cache add spec .
8 silly cache add parsed spec { raw: '.',
8 silly cache add scope: null,
@llaughlin
llaughlin / boxstarter.ps1
Last active August 29, 2015 14:26
Boxstarter Windows 8.1
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Update-ExecutionPolicy RemoteSigned
#cinst visualstudio2015community
cinst sublimetext3
cinst poshgit
cinst git.install
cinst 7zip.install
cinst nodejs.install
@llaughlin
llaughlin / setup-docker-enter.sh
Created June 17, 2015 18:29
MacOSX docker-enter docker instances
#!/bin/bash
set -e
# Check for nsenter. If not found, install it
boot2docker ssh '[ -f /var/lib/boot2docker/nsenter ] || docker run --rm -v /var/lib/boot2docker/:/target jpetazzo/nsenter'
# Use bash if no command is specified
args=$@
if [[ $# = 1 ]]; then
args+=(/bin/bash)
@llaughlin
llaughlin / -etc-multitail.conf
Created June 11, 2015 20:25
multitail golang
colorscheme:go
cs_re:green:.*\[DEBUG\].*
cs_re:yellow:.*\[WARNING\].*
cs_re:white:.*\[INFO\].*
cs_re:cyan:.*\[NOTICE\].*
cs_re:red:.*\[ERROR\].*
@llaughlin
llaughlin / installasp5.sh
Last active August 29, 2015 14:20
ASP5 Linux
# Linux
# execute sudo <something> first before running this script
# https://github.com/aspnet/Home/blob/dev/GettingStartedDeb.md
# also http://docs.asp.net/en/latest/
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
#if ubuntu 12.04 - http://www.mono-project.com/docs/getting-started/install/linux/#older-ubuntu-releases-ubuntu-1210-and-1204