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
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | |
<snippet> | |
<content><![CDATA[\$($1)]]></content> | |
<!-- Optional: Tab trigger to activate the snippet --> | |
<tabTrigger>sub</tabTrigger> | |
<!-- Optional: Scope the tab trigger will be active in --> | |
<scope>source.powershell</scope> | |
</snippet> |
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
[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 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
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
<#PSScriptInfo | |
.VERSION 1.0 | |
.GUID 9c74d64a-774d-4f5a-a8c4-485fd079e7bd | |
.AUTHOR | |
Oliver Lipkau <[email protected]> | |
.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
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
// ==UserScript== | |
// @name AtlassianTuner | |
// @description Custom javascript to inject onto Atlassian's Jira and Confluence to make experience better (at least for me) | |
// @namespace https://gist.github.com/lipkau/481342249739847f2d7f8d3099783ce4 | |
// @author Oliver Lipkau | |
// @version 0.10.1 | |
// @include https://*.bsh-sdd.com* | |
// @require https://code.jquery.com/jquery-2.2.4.min.js#sha256=BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44= | |
// @require https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.2/anchor.min.js#sha256=WofcoLT8gToeaSmVRe28qpnlFxdBJH1n4K6Bk3YowvU= | |
// @run-at document-start |
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", |
OlderNewer