Skip to content

Instantly share code, notes, and snippets.

View it-praktyk's full-sized avatar

Wojciech Sciesinski it-praktyk

View GitHub Profile
@it-praktyk
it-praktyk / LICENSE
Created November 14, 2017 22:46 — forked from indented-automation/Update-PesterTest.ps1
Migrating to Pester 4.0.7
Copyright 2017 Chris Dent
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@it-praktyk
it-praktyk / gist:90b3ad4d85b5bbac6c973fb3d337779c
Last active October 28, 2016 23:24
Ansible timezone for CentOS
---
tasks:
- name: Check current timezone
shell: timedatectl | grep zone | awk '{ print $3}'
register: current_zone
changed_when: False
notify:
- restart Cron service
- name: Set timezone to {{ timezone }}
Function GenerateScriptDocumentationInMarkdown {
<#
.Synopsis
Generates documentation for a folder-full of scripts using the integrated Get-Help CMDlets.
.Description
Generates a .markdown documentat for each PS1 script in a folder which has the necessary headers required by Get-Help. Also generates an index document which lists (and links to) all generated documentats. Each file name is preceeded with "script_ps1_" so that they are listed together when viewing the Wiki documents.
.Parameter SourceScriptFolder
Source folder where the scripts are located
@it-praktyk
it-praktyk / Get-HelpByMarkdown.ps1
Created January 3, 2016 00:31 — forked from urasandesu/Get-HelpByMarkdown.ps1
This script converts PowerShell comment-based help to GitHub Flavored Markdown.
#
# File: Get-HelpByMarkdown.ps1
#
# Author: Akira Sugiura (urasandesu@gmail.com)
#
#
# Copyright (c) 2014 Akira Sugiura
#
# This software is MIT License.
#