Skip to content

Instantly share code, notes, and snippets.

View devigned's full-sized avatar

David Justice devigned

View GitHub Profile
{
"swagger": "2.0",
"info": {
"title": "VSO Git API",
"description": "Interact with a Git repository hosted in VSO",
"version": "1.0-preview.1"
},
"schemes": [
"https"
],
var PageTransitioner = Class.create();
PageTransitioner.prototype = {
initialize: function() {
this.trackLinks();
},
trackLinks: function() {
document.observe('click', (function(event){
var target = event.findElement('a[rel^=transition]') || event.findElement('area[rel^=transition]');
if (target) {
if (typeof(target) != 'object') target = $(target);
document.observe('click', (function(event){
var target = event.findElement('a[rel^=transition]') || event.findElement('area[rel^=transition]');
...
}
<a class="nav" rel="transition" href="page2.html">Page 2</a>;
@devigned
devigned / github.ps1
Created October 3, 2015 07:06
A little PowerShell script to jump to a github repo given the remote name
function GitHub {
Param
(
[CmdletBinding()]
[parameter(Mandatory=$true)]
[String]
$remote
)
$loc = (git remote show $remote | Select-String -Pattern "Fetch URL: (.+?)github.com[:|/](?<fork>.*)\.git" | select -expand Matches | foreach { $_.groups["fork"].value })
Start "http://github.com/$loc"
@devigned
devigned / import-azps-1-0-pre.ps1
Created October 9, 2015 17:46
Importing Azure PowerShell 1.0 preview
# Import all of the AzureRM.* modules within the known semantic version range
Import-AzureRM
# Import a single AzureRM module
Import-Module AzureRM.Compute
# Import Azure Service Management
Import-Module Azure
@devigned
devigned / install-azps-1-0-pre.ps1
Last active October 9, 2015 17:49
Installing Azure Powershell 1.0 Preview PowerShellGet
# Install the Azure Resource Manager modules from PowerShell Gallery
Install-Module AzureRM
Install-AzureRM
# Install the Azure Service Management module from PowerShell Gallery
Install-Module Azure
@devigned
devigned / get-started-azps-1-0-pre-sm.ps1
Last active October 9, 2015 17:49
Getting started Azure Preview 1.0 Service Management
# Import the Azure Service Management module
Import-Module Azure
# To login to Azure Service Management
Add-AzureAccount
# To list the your virtual machines
Get-AzureVM
@devigned
devigned / get-started-azps-1-0-pre-rm.ps1
Last active October 10, 2015 00:31
Getting started with Azure PowerShell 1.0 Preview RM
Set-ExecutionPolicy RemoteSigned
Install-Module AzureRM
Install-AzureRM
Login-AzureRmAccount
@devigned
devigned / get-started-azps-1-0-pre-rm.ps1
Last active October 12, 2015 16:46
Getting started with Azure 1.0 Preview Resource Manager
# To login to Azure Resource Manager
Login-AzureRmAccount
# To view all subscriptions for your account
Get-AzureRmSubscription
# To select a default subscription for your current session
Get-AzureRmSubscription –SubscriptionName “your sub” | Select-AzureRmSubscription
# To select the default storage context for your current session