Skip to content

Instantly share code, notes, and snippets.

View lorcanmcdonald's full-sized avatar

Lorcan McDonald lorcanmcdonald

View GitHub Profile
# 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
@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 = git@github.com:joyent/node.git