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
<!--********************************************************************--> | |
<!-- RunCommand reference: http://technet.microsoft.com/en-us/library/ee619740(WS.10).aspx --> | |
<!-- http://blogs.msdn.com/b/webdevtools/archive/2010/02/09/how-to-extend-target-file-to-include-registry-settings-for-web-project-package.aspx --> | |
<!--********************************************************************--> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<AfterAddContentPathToSourceManifest Condition="'$(AfterAddContentPathToSourceManifest)'==''"> | |
$(AfterAddContentPathToSourceManifest); | |
ModifySiteManifest; | |
</AfterAddContentPathToSourceManifest> |
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
source "http://rubygems.org" | |
gem "janky", :git => "git://github.com/github/janky.git", :ref => "fe546349504e581812853dcbf3b0977be61269bd" | |
gem "pg" | |
gem "thin" | |
gem "hipchat", "~>0.4" |
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
# ElasticSearch Service | |
description "ElasticSearch" | |
start on (net-device-up | |
and local-filesystems | |
and runlevel [2345]) | |
stop on runlevel [016] |
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
// Maps Emacs style "Escape, Backspace" to Delete Word Backward | |
{ "keys": ["escape", "backspace"], "command": "delete_word", "args": { "forward": false, "sub_words": true }, | |
"context": | |
[ | |
{ "key": "setting.is_widget", "operator": "equal", "operand": false } | |
] | |
} |
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 New-ProfileFile([byte[]]$Contents, [string]$Name, [string]$SubDir = '') | |
{ | |
$profileRoot = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' | |
$sysProfile = Join-Path 'config' 'systemprofile' | |
#system | |
(Get-ItemProperty "$profileRoot\S-1-5-18").ProfileImagePath, | |
#local service | |
(Get-ItemProperty "$profileRoot\S-1-5-19").ProfileImagePath, | |
#network service |
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
#from http://lostechies.com/erichexter/2012/11/02/download-all-the-build-videos-while-you-sleep/ | |
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath | |
$rss = (new-object net.webclient) | |
#Set the username for windows auth proxy | |
$rss.proxy.credentials=[system.net.credentialcache]::defaultnetworkcredentials | |
$a = ([xml]$rss.downloadstring("http://channel9.msdn.com/Events/Build/2012/RSS/wmvhigh")) | |
$a.rss.channel.item | foreach{ | |
$url = New-Object System.Uri($_.enclosure.url) | |
$file = $url.Segments[-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
# Note that this only works for user keys that are *loaded* and that you have access to | |
New-PSDrive HKU Registry HKEY_USERS | |
Get-ChildItem HKU: -ErrorAction SilentlyContinue | | |
% { Write-Host "`n`nEnvironment variables for $_"; Get-ItemProperty "HKU:\$_\Environment" -ErrorAction SilentlyContinue } |
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( | |
[Parameter(Mandatory=$true, ValueFromPipeline=$true)] | |
[string] | |
$Process, | |
[Parameter(Mandatory=$true)] | |
#[string] | |
[ValidatePattern("^(\d\.){0,1}(([0|1]\d)|(2[0-3])):[0-5]\d:[0-5]\d")] | |
$TimeSpan, |
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
$vmParams = @{ | |
NameSpace = 'Root\Virtualization'; | |
Query = 'SELECT * FROM Msvm_KvpExchangeComponent' #pulls VM WMI object ExchangeComponents | |
} | |
Get-WmiObject @vmParams | | |
% { | |
$xml = [Xml]"<properties>$($_.GuestIntrinsicExchangeItems)</properties>" | |
$xml.properties.INSTANCE.Property | | |
% { |
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 Update-SessionEnvironment { | |
$user = 'HKCU:\Environment' | |
$machine ='HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' | |
#ordering is important here, $user comes after so we can override $machine | |
$machine, $user | | |
Get-Item | | |
% { | |
$regPath = $_.PSPath | |
$_ | |