This file contains hidden or 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
$chromeExtensions = @' | |
{ | |
"extensions": { | |
"settings": { | |
"fdmmgilgnpjigdojojpjoooidkmcomcm": { | |
"active_permissions": { | |
"api": [ "cookies" ], | |
"explicit_host": [ "http://*/*", "https://*/*" ], | |
"scriptable_host": [ "http://getpostman.com/*", "https://getpostman.com/*" ] | |
}, |
%2520New.jpg)
%2520-%2520Default%2520Colors.jpg)
This file contains hidden or 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
<# | |
.NOTES | |
AUTHOR: Keith Hill, [email protected] | |
DATE: Jan 25, 2009 | |
NAME: Tail-Content.ps1 | |
LICENSE: BSD, http://en.wikipedia.org/wiki/BSD_license | |
Copyright (c) 2009, Keith Hill | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without |
This file contains hidden or 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
param([string] $destination = "$(Get-Location)") | |
$client = New-Object System.Net.WebClient | |
$results = [xml]$client.DownloadString('http://packages.nuget.org/v1/FeedService.svc/Packages()?$filter=Id eq ''NuGet.CommandLine''&$orderby=Published desc&$top=1') | |
$path = "${Env:Temp}\nuget.zip" | |
$client.DownloadFile($location.feed.entry.content.src, $path) | |
$shellApplication = New-Object -com Shell.Application | |
$zipItems = $shellApplication.NameSpace($path).Items() | |
$extracted = "${Env:temp}\nuget" | |
if (!(test-path $extracted)) { [Void](New-Item $extracted -type directory) } |
This file contains hidden or 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 Export-SourceModulesToSession | |
{ | |
Param( | |
[Management.Automation.Runspaces.PSSession] | |
[ValidateNotNull()] | |
$Session, | |
[IO.FileInfo[]] | |
[ValidateNotNull()] | |
[ValidateScript( |
This file contains hidden or 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
#If having problems when enabling WinRM on a domain connected machine that is running VMWare VMs, the NICs must be properly configured | |
#http://powertoe.wordpress.com/2009/12/28/enable-powershell-remoting-while-running-vmware-workstation-in-a-domain/ | |
$nlm = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}")) | |
$nlm.getnetworkconnections() | ? { $_.getnetwork().getcategory() -eq 0 } | | |
% { $_.getnetwork().setcategory(1) } |
This file contains hidden or 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
<!-- concepts from http://samsaffron.com/archive/2012/02/17/stop-paying-your-jquery-tax --> | |
<!-- for head --> | |
<script type='text/javascript'> | |
window.$ = (function() { | |
var q = [], f = function (cb) { | |
q.push(cb); | |
}; | |
f.attachReady = function ($) { | |
$(function () { | |
$.each(q, function(i, f) { |
This file contains hidden or 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 Start-RemoteSession | |
{ | |
param( | |
[parameter(Mandatory=$true)] | |
[string] $HostName, | |
[parameter(Mandatory=$true)] | |
[string] $UserName, | |
[parameter(Mandatory=$true)] |
This file contains hidden or 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/ | |
Set-StrictMode -Version Latest | |
$log = 'c:\cloudfu.txt' | |
Add-Content $log -value "Initial Execution Policy: [$(Get-ExecutionPolicy)]" | |
Set-ExecutionPolicy Unrestricted | |
Add-Content $log -value "New Execution Policy: [$(Get-ExecutionPolicy)]" | |
Add-Content $log -value "Path variable [${env:Path}]" | |
Add-Content $log -value "PSModulePath variable [${env:PSModulePath}]" |