This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Nancy; | |
namespace NancyDemo | |
{ | |
public class HelloModule : NancyModule | |
{ | |
public HelloModule() | |
{ | |
Get["/"] = parameters => "Hello World"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
nuget restore -NonInteractive | |
PACKAGES_DIR=$(find ./packages/ -name *.dll) | |
PACKAGES="" | |
for f in $PACKAGES_DIR; do | |
PACKAGES="$PACKAGES $f" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "deb/jessie-amd64" | |
config.vbguest.auto_update = false | |
# Provision the Debian server with the Mono build environment | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
apt-get install -y curl | |
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
changedir_go() { | |
if [ "$#" -eq "2" ]; then | |
cd $GOPATH/src/github.com/$1/$2 | |
else | |
cd $GOPATH/src/github.com/mefellows/$1 | |
fi | |
} | |
alias cg=changedir_go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"build_version": "1.0.0" | |
}, | |
"builders": [ | |
{ | |
"type": "parallels-iso", | |
"guest_os_type": "win-2012", | |
"disk_size": 65536, | |
"name": "basebox-parallels", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host -ForegroundColor green "Bootstrapping machine" | |
Write-Host "Setting up package management and installing required packages for Dev." | |
# | |
# Install Choco (if not already installed) + required packages | |
# | |
if ( (Get-Command "choco" -errorAction SilentlyContinue) ) { | |
Write-Host "Chocolatey already installed. Skipping." | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANTFILE_API_VERSION = "2" | |
require 'io/console' | |
# Capture login details if starting up vagrant or provisioning it | |
# Required for AD operations. | |
# | |
# Environment variables prevent explicit user input. Useful for CI. | |
username = ENV["VAGRANT_USER"] || nil | |
password = ENV["VAGRANT_PASSWORD"] || nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<powershell> | |
write-output "Running User Data Script" | |
write-host "(host) Running User Data Script" | |
cmd.exe /c net user /add vagrant FooBar@123 | |
cmd.exe /c net localgroup administrators vagrant /add | |
Set-ExecutionPolicy -ExecutionPolicy bypass -Force | |
# RDP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update-ExecutionPolicy Unrestricted | |
Set-TaskbarSmall | |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
cinst sublimetext2 | |
cinst SqlServer2012Express | |
cinst VisualStudio2013Ultimate | |
cinst fiddler4 | |
cinst mssqlserver2012express |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#$Shell.WindowTitle="WinOps Matt" | |
set-executionpolicy unrestricted | |
new-item alias:subl -value 'C:\Program Files\Sublime Text 3\sublime_text.exe' | |
new-item alias:ll -value 'ls' |