Skip to content

Instantly share code, notes, and snippets.

View lorcanmcdonald's full-sized avatar

Lorcan McDonald lorcanmcdonald

View GitHub Profile
{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving, RankNTypes #-}
{-
By Lorcan and Joe @ melosity.com
https://github.com/lorcanmcdonald/
https://github.com/JosephDevaney/
-}
module Main where
import Text.Parsec
import Data.Functor.Identity
import Debug.Trace
# Windows AMIs don't have WinRM enabled by default -- this script will enable WinRM
# AND install 7-zip, curl and .NET 4 if its missing.
# Then use the EC2 tools to create a new AMI from the result, and you have a system
# that will execute user-data as a PowerShell script after the instance fires up!
# This has been tested on Windows 2008 SP2 64bits AMIs provided by Amazon
#
# Inject this as user-data of a Windows 2008 AMI, like this (edit the adminPassword to your needs):
#
# <powershell>
# Set-ExecutionPolicy Unrestricted

Keybase proof

I hereby claim:

  • I am lorcanmcdonald on github.
  • I am lorcan (https://keybase.io/lorcan) on keybase.
  • I have a public key whose fingerprint is E259 04B4 5F1A 8A08 5AB5 100D 65EE 4649 7CAC 7086

To claim this, I am signing this object:

@lorcanmcdonald
lorcanmcdonald / pr.md
Last active December 15, 2015 09:09 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. The .git folder is likely to be a hidden file on Windows systems, as it obviously is on Unix ones.

It looks like this:

[remote "prime"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git