Skip to content

Instantly share code, notes, and snippets.

@lipkau
lipkau / settings.json
Last active Mar 6, 2020
VS Code User Settings
View settings.json
{
// hover the key of the setting to get details
// SETTINGS
"workbench.settings.editor": "json",
// ************
// ** EDITOR **
// ************
"breadcrumbs.enabled": true, // breadcrumb of the symbols in the file
"editor.cursorSmoothCaretAnimation": true,
"editor.renderIndentGuides": true,
@lipkau
lipkau / CICD_flow.md
Last active Sep 25, 2018
A description of a CI/CD pipeline for Powershell
View CICD_flow.md

CI/CD Flow description

Assumptions

  • This description uses only major, minor and build in the module's version.
  • This description uses external help instead of Comment-Based help (platyPS).
  • This description uses Pester for running tests.
  • This description hosts the source of github.

Triggers

@lipkau
lipkau / WatchIssues.ps1
Last active Jul 5, 2018
[AtlassianPS] [JiraPS] Subscribe to multiple Issues to be informed about changes
View WatchIssues.ps1
#requires -modules JiraPS
if (-not (Get-JiraSession)) {
Write-Error "Script requires a valid session. Use 'New-JiraSession' or edit script."
return
}
$users = @('jon.doe', 'jane.doe')
$query = "project = TV AND components = Backend"
@lipkau
lipkau / Initialize-Environment.ps1
Last active Jan 3, 2018
[AtlassianPS] [JiraPS] Set up the environment for JiraPS (Install, Import, Login)
View Initialize-Environment.ps1
function Initialize-Environment {
<#
.SYNOPSIS
Initialize the module
.DESCRIPTION
Setup the environment to work with JiraPS
.EXAMPLE
Initialize-Environment
@lipkau
lipkau / Upload-Changes.ps1
Last active Oct 16, 2017
[AtlassianPS] [JiraPS] Upload changes to Jira Issues
View Upload-Changes.ps1
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,
@lipkau
lipkau / html.json
Created May 19, 2017
Insert Snippet around selection with keybinding #vscode #sample
View html.json
{
"make_strong": {
"prefix": "strong",
"body": [
"<strong>$TM_SELECTED_TEXT${1}</strong>${0}"
],
"description": "Encloses selected text in <strong></strong> tags"
},
"make_italic": {
"prefix": "italic",
@lipkau
lipkau / AtlassianTuner.user.js
Last active Jul 9, 2020
UserScript for Atlassian's Jira and Confluence
View AtlassianTuner.user.js
// ==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
@lipkau
lipkau / Get-ConfluenceVersion.ps1
Last active Mar 4, 2017
Fetch version of the confluence Server
View Get-ConfluenceVersion.ps1
function Get-ConfluenceVersion {
[CmdletBinding()]
param (
# Server
[Parameter(Mandatory = $true)]
[string] $ServerUrl
)
begin {
$response = Invoke-RESTMethod -Uri $ServerUrl
@lipkau
lipkau / Start-WebServer.ps1
Last active Mar 9, 2017
Create local http server using PHP.exe #powershell #helperFunction #workflow
View Start-WebServer.ps1
<#PSScriptInfo
.VERSION 1.0
.GUID 9c74d64a-774d-4f5a-a8c4-485fd079e7bd
.AUTHOR
Oliver Lipkau <oliver@lipkau.net>
.COPYRIGHT
Oliver Lipkau
@lipkau
lipkau / New-Folder.ps1
Last active Oct 16, 2017
Create new folder and naviagte into it #powershell #helperFunction #workflow
View New-Folder.ps1
function New-Folder
{
<#
.Synopsis
Create a new folder and navigate into it
.Description
Create a new folder and navigate into it
.Notes
You can’t perform that action at this time.