View Get-AzureDevOpsAgentSpecifications.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
Import-Module VSTeam | |
function Get-AzureDevOpsAgentSpecifications { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory)] | |
[string] | |
$Account, |
View Get-DadJokeIpsum.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
<# | |
.SYNOPSIS | |
Get some filler text that is dad jokes | |
.PARAMETER minLength | |
The minimum length of text you need | |
PS> Get-DadJokeIpsum -minLength 500 | |
Where did Captain Hook get his hook? From a second hand store. Why was the broom late for the meeting? He overswept. Dad, can you put my shoes on? I don't think they'll fit me. For Valentine's day, I decided to get my wife some beads for an abacus. It's the little things that count. Why is the ocean always blue? Because the shore never waves back. How does a dyslexic poet write? Inverse. Whiteboards ... are remarkable. Want to hear a joke about construction? Nah, I'm still working on it. Why do scuba divers fall backwards into the water? Because if they fell forwards theyâd still be in the boat. Some people say that comedians who tell one too many light bulb jokes soon burn out, but they don't know watt they are talking about. They're not that bright. Don't trust atoms. They make up everything. I am terrified of elevators. Iâm going to start taking steps to |
View Copy-PasteItem.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
<# | |
.SYNOPSIS | |
Copy files using your clipboard and PowerShell | |
.DESCRIPTION | |
The file specified at $Path is converted to a base64 string, wrapped with a tiny script that converts the base64 string | |
back to binary and saves it at the path specified in the $Destination parameter | |
#> | |
function Copy-PasteItem { | |
[CmdletBinding()] |
View index.html
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
<div class="playingCards fourColours faceImages"> | |
<div class="card rank-7 spades"> | |
<span class="rank"></span> | |
<span class="suit"></span> | |
</div> | |
</div> | |
<div class="playingCards faceImages"> | |
<div class="card rank-7 diams"> | |
<span class="rank"></span> |
View index.html
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
<html> | |
<body> | |
<table style="width: 100%; overflow-x: hidden; table-layout: fixed;"> | |
<tbody> | |
<tr> | |
<td style="text-align: center; width: 200px; border-right: solid;"> | |
<h1>Product</h1> | |
<img src="https://media.haworth.com/image/117471/s800/fern_linkedin_50x50_1-(1).jpg" style="max-height: 100px;" /> | |
</td> | |
<td style="padding-left: 20px"> |
View boxstarter-basic
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
## Git | |
cinst -y git.install | |
cinst -y poshgit | |
cinst -y Git-Credential-Manager-for-Windows | |
cinst -y visualstudiocode |
View FindPortProcessName.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
$Port = "8080" | |
netstat -a -n -o | where { $_ -match $Port } | foreach { | |
$Process = Get-Process -PID (($_ -replace "\s+"," ") -split " ")[-1] | |
"Process: $($Process.ProcessName) ($($Process.Id)) is using $Port" | |
} |
View FindPortProcessName
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
$Port = "8080" | |
netstat -a -n -o | where { $_ -match $Port } | foreach { | |
$Process = Get-Process -PID (($_ -replace "\s+"," ") -split " ")[-1] | |
"Process: $($Process.ProcessName) ($($Process.Id)) is using $Port" | |
} |
View setup.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
#!/bin/pwsh | |
Install-Module -Name Get-ChildItemColor, oh-my-posh, posh-git, nvm -Force | |
md ~\.config\powershell | |
"Set-Theme -name Darkblood" | Out-File $Profile -Append | |
Install-NodeVersion 8 | |
Install-NodeVersion 10 |
View boxstarter
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
# Configure Windows | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Update-ExecutionPolicy Unrestricted | |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | |
Install-Module -Name Get-ChildItemColor, oh-my-posh -Force | |
## Git | |
cinst -y git.install |
NewerOlder