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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>oprop</Title> | |
<Shortcut>oprop</Shortcut> | |
<Description>Code snippet for an automatically implemented observable property for any class that implements INotifyPropertyChanged.</Description> | |
<Author>Your name here</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
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
' http://zachbonham.blogspot.com | |
' | |
' use at your own risk. :) | |
' | |
' assuming that your default scripting engine is CScript.exe | |
' cscript //H:CScript | |
' | |
' | |
' Assuming administrator priviledges | |
' |
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
require 'rexml/document' | |
require 'rexml/xpath' | |
require 'net/http' | |
require 'net/https' | |
require 'uri' | |
include REXML | |
url = URI.parse('http://annoysmarx.cloudapp.net/') |
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 System; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Net; | |
using System.Xml.Linq; | |
namespace getsmarx | |
{ | |
public static class StringExtensions | |
{ |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>tm</Title> | |
<Shortcut>tm</Shortcut> | |
<Description>Code snippet for an automatically create a method decorated with [TestMethod] attribute.</Description> | |
<Author>Zach Bonham</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
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
public class GetProjects : Task | |
{ | |
[Required] | |
public string SolutionPath { get; set; } | |
[Output] | |
public ITaskItem[] Projects { get; set; } | |
public override bool Execute() | |
{ |
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
' http://zachbonham.blogspot.com | |
' | |
' use at your own risk. :) | |
' | |
' assuming that your default scripting engine is CScript.exe | |
' cscript //H:CScript | |
' | |
' | |
' Assuming administrator priviledges | |
' |
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
$cred = get-credential | |
$session = new-pssession -computername fqdn -credential $cred | |
invoke-command { import-module bitstransfer; start-bitstransfer -source \\fnp\package_1234.zip -destination c:\temp\package1234.zip } -session $session -asjob -jobname "update" | |
receive-job $jobid | |
<# | |
The remote use of BITS is not supported. For more information about BITS, see the MSDN documentation at http://go.microsoft.com/FWLINK/?LinkId=140888. |
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
function ServerRepository(connection) | |
{ | |
var servers = [ | |
{ name : "testin 1"}, | |
{ name: "testin 2"} | |
]; | |
var self = this; | |
self.connection = connection; |
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
function invoke-remoteexpression($computer = “\\$ENV:ComputerName”, [ScriptBlock] $expression = $(throw “Please specify an expression to invoke.”), [switch] $noProfile , $username, $password) | |
{ | |
$commandLine = “echo . | powershell “ | |
if($noProfile) | |
{ | |
$commandLine += “-NoProfile “ |
OlderNewer