Skip to content

Instantly share code, notes, and snippets.

View it-praktyk's full-sized avatar

Wojciech Sciesinski it-praktyk

View GitHub Profile
// https://stackoverflow.com/questions/9815273/how-to-get-a-list-of-installed-jenkins-plugins-with-name-and-version-pair
Jenkins.instance.pluginManager.plugins.each{
plugin ->
// println ("${plugin.getDisplayName()} (${plugin.getShortName()}): ${plugin.getVersion()}")
println ("${plugin.getShortName()}:${plugin.getVersion()}")
}
<user_name>% MOLECULE_NO_LOG=no molecule --debug test
--> Validating schema /home/<user_name>/<folder_name>/ansible-role-java/molecule/default/molecule.yml.
Validation completed successfully.
--> Test matrix
└── default
├── lint
├── dependency
├── cleanup
├── destroy
@it-praktyk
it-praktyk / win_disk_facts_exisiting_since_Ansible_2.5.json
Last active January 31, 2019 12:47
win_disk_facts - outputs for #37798
{
"ansible_facts": {
"ansible_disks": [
{
"bootable": true,
"bus_type": "ATA",
"clustered": false,
"firmware_version": "1.0",
"friendly_name": "VBOX HARDDISK ATA Device",
"guid": null,
@it-praktyk
it-praktyk / Block-GitLabUser.md - AFTER
Created June 14, 2018 20:08
Update-MarkdownHelp doesn't respect -the parameter AlphabeticParamsOrder - examples
---
external help file: PSGitLab-help.xml
Module Name: PSGitLab
online version:
schema: 2.0.0
---
# Block-GitLabUser
## SYNOPSIS
Time : 00:00:00.1285189
FailureMessage : Expected {AliasInfo FunctionInfo CmdletInfo FilterInfo}, but got {FunctionInfo}.
Context :
StackTrace : at <ScriptBlock>, /home/vagrant/PowerShell/test/powershell/engine/Basic/CommandDiscovery.Tests.ps1: line 93
93: $command.GetType().Name | should be @("AliasInfo","FunctionInfo","CmdletInfo","FilterInfo")
ParameterizedSuiteName :
Result : Failed
ErrorRecord : Expected {AliasInfo FunctionInfo CmdletInfo FilterInfo}, but got {FunctionInfo}.
@it-praktyk
it-praktyk / Pester-3.4.6-NUnit.xml
Last active January 4, 2018 22:43
Pester 3 and 4 Nunit outputs
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<test-results xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="nunit_schema_2.5.xsd" name="Pester" total="21" errors="0" failures="5" not-run="0" inconclusive="9" ignored="3" skipped="0" invalid="0" date="2017-12-21" time="06:34:16">
<environment user="vagrant" machine-name="VAGRANT-10" cwd="C:\Users\vagrant\Desktop\Format-Pester" user-domain="VAGRANT-10" platform="Microsoft Windows 10 Enterprise Evaluation|C:\Windows|\Device\Harddisk0\Partition1" nunit-version="2.5.8.0" os-version="10.0.16299" clr-version="4.0.30319.42000" />
<culture-info current-culture="en-US" current-uiculture="en-US" />
<test-suite type="PowerShell" name="Pester" executed="True" result="Failure" success="False" time="1.6185" asserts="0">
<results>
<test-suite type="TestFixture" name="DemoFunction1 - Static" executed="True" result="Failure" success="False" time="1.2689" asserts="0" description="DemoFunction1 - Static">
<resu
@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 / setup-host-fallback.log
Last active November 8, 2017 18:48
Vagrant OpenStack Cookbook - installation on Windows issue
Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml "
Using /etc/ansible/ansible.cfg as config file
statically included: /etc/ansible/roles/openstack_hosts/tasks/openstack_kernel_check.yml
statically included: /etc/ansible/roles/openstack_hosts/tasks/openstack_proxy_settings.yml
statically included: /etc/ansible/roles/openstack_hosts/tasks/openstack_host_install.yml
statically included: /etc/ansible/roles/openstack_hosts/tasks/openstack_sysstat.yml
statically included: /etc/ansible/roles/openstack_hosts/tasks/openstack_kernel_modules.yml
statically included: /etc/ansible/roles/openstack_hosts/tasks/openstack_kernel_tuning.yml
statically included: /etc/ansible/roles/openstack_hosts/tasks/openstack_authorized_keys.yml
statically included: /etc/ansible/roles/openstack_hosts/tasks/openstack_release.yml
➜ ~ ssh -l root 192.168.13.26
Warning: Permanently added '192.168.13.26' (ECDSA) to the list of known hosts.
root@192.168.13.26's password:
You are required to change your password immediately (root enforced)
Changing password for root.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
U-Boot SPL 2017.05-armbian (Jun 01 2017 - 21:46:19)
DRAM: 2048 MiB
Trying to boot from MMC1
U-Boot 2017.05-armbian (Jun 01 2017 - 21:46:19 +0000) Allwinner Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi Plus 2E
DRAM: 2 GiB