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
#!/usr/bin/python | |
""" | |
Referencing current branch in github readme.md[1] | |
This pre-commit hook[2] updates the README.md file's | |
Travis badge with the current branch | |
[1] http://stackoverflow.com/questions/18673694/referencing-current-branch-in-github-readme-md | |
[2] http://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks | |
[3] https://docs.travis-ci.com/user/status-images/ |
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
Write-Host "Attempting to mount default registry hive" | |
& REG LOAD HKLM\DEFAULT C:\Users\Default\NTUSER.DAT | |
Push-Location 'HKLM:\DEFAULT\Software\Microsoft\Internet Explorer' | |
if (!(Test-Path Main)) { | |
Write-Warning "Adding missing default keys for IE" | |
New-Item Main | |
} | |
$sp = Get-ItemProperty -Path .\Main | |
Write-Host "Replacing $_ : $($sp.'Start Page')" |