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
javascript:void(window.open('http://pushbullet.com/push/link?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href))) | |
// Source: http://pastebin.com/183UqMc1 |
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
# go to the gh-pages branch | |
git checkout gh-pages | |
# bring gh-pages up to date with master | |
git rebase master | |
# commit the changes | |
git push origin gh-pages | |
# return to the master branch | |
git checkout master | |
# Source: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/ |
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
// Make sure to rename the object fields | |
// Table's header gets ignored | |
var tbl = $('table#tableToConvert tr:has(td)').map(function(i, v) { | |
var $td = $('td', this) | |
return { | |
wkid: $td.eq(0).text(), | |
name: $td.eq(1).text() | |
} | |
}).get(); |
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
DiskPart -s "c:\AttachMyVHD.s" |
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
select vdisk file=c:\MyVHD.vhd | |
attach vdisk |
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
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" 'D:\Folder Name\Our Script.ps1' |
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 Get-SqlServiceStatus ($serviceName) | |
{ | |
# Get a reference to the service | |
$sqlService = Get-Service $serviceName | |
# Return the service status | |
return $sqlService.status | |
} |
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 Mount-Codebox | |
{ | |
$scriptFile = “D:\VBox\HardDrives\AttachVHD.cmd” | |
& $scriptFile | |
} |
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
Set-ExecutionPolicy –ExecutionPolicy Unrestricted |
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
Get-ExecutionPolicy |
OlderNewer