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-Uptime | |
{ | |
<# | |
.SYNOPSIS | |
Get Computer's uptime | |
.DESCRIPTION | |
Returns the total time since the last reboot | |
.NOTES |
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
Add-Type -TypeDefinition @" | |
using System; | |
namespace foo | |
{ | |
public struct bar { | |
public Int64 id; | |
} | |
} | |
"@ |
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 Format-Wide { | |
[CmdletBinding(HelpUri='http://go.microsoft.com/fwlink/?LinkID=113304')] | |
param( | |
[Parameter( | |
Position=0 | |
)] | |
[System.Object]${Property}, | |
[switch]${AutoSize}, |
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
[CmdletBinding()] | |
[OutputType([System.Management.Automation.PSModuleInfo])] | |
param( | |
# The name of the module to install from GitHub. | |
[Parameter(Position=0, Mandatory=$true)] | |
[ValidateNotNullOrEmpty()] | |
[System.String[]] | |
$ModuleName, | |
# The scope from which the module should be discoverable. |
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-ConfluenceVersion { | |
[CmdletBinding()] | |
param ( | |
# Server | |
[Parameter(Mandatory = $true)] | |
[string] $ServerUrl | |
) | |
begin { | |
$response = Invoke-RESTMethod -Uri $ServerUrl |
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
<#PSScriptInfo | |
.VERSION 1.0 | |
.GUID 9c74d64a-774d-4f5a-a8c4-485fd079e7bd | |
.AUTHOR | |
Oliver Lipkau <oliver@lipkau.net> | |
.COPYRIGHT | |
Oliver Lipkau |
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_strong": { | |
"prefix": "strong", | |
"body": [ | |
"<strong>$TM_SELECTED_TEXT${1}</strong>${0}" | |
], | |
"description": "Encloses selected text in <strong></strong> tags" | |
}, | |
"make_italic": { | |
"prefix": "italic", |
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
param( | |
# Path to the JSON file with the information to upload. | |
[Parameter(Mandatory = $true)] | |
[ValidateScript( { Test-Path $_ })] | |
[string]$InputFile, | |
# Credentials to use for the connection with Jira. | |
[Parameter(Mandatory = $true)] | |
[PSCredential]$Credential, |
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 New-Folder | |
{ | |
<# | |
.Synopsis | |
Create a new folder and navigate into it | |
.Description | |
Create a new folder and navigate into it | |
.Notes |
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 Initialize-Environment { | |
<# | |
.SYNOPSIS | |
Initialize the module | |
.DESCRIPTION | |
Setup the environment to work with JiraPS | |
.EXAMPLE | |
Initialize-Environment |
OlderNewer