Skip to content

Instantly share code, notes, and snippets.

View rockaut's full-sized avatar

Markus Fischbacher rockaut

View GitHub Profile
@rockaut
rockaut / hosts.yml
Created December 14, 2021 18:53
Ansible-Inventory YAML Anchor
---
all:
vars:
ansible_connection: local
children:
grp_a:
hosts: &grp_a
hosta1:
hosta2:

Keybase proof

I hereby claim:

  • I am rockaut on github.
  • I am rockaut (https://keybase.io/rockaut) on keybase.
  • I have a public key ASDdIVWft8_APsg53CbyIeuW2F-Z0bYIi0b5FYJHdm1e_go

To claim this, I am signing this object:

param
(
[Parameter(Mandatory=$true)]
$Value
)
$key = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009'
$counters = (Get-ItemProperty -Path $key -Name Counter).Counter
$index = [array]::indexof($counters, "$Value")
@rockaut
rockaut / throttled.sh
Created August 16, 2019 07:35 — forked from aallan/throttled.sh
Script to parse the output of the 'vcgencmd get_throttled' command on a Raspberry Pi
#!/bin/bash
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling
#Flag Bits
UNDERVOLTED=0x1
CAPPED=0x2
THROTTLED=0x4
HAS_UNDERVOLTED=0x10000
HAS_CAPPED=0x20000
@rockaut
rockaut / getvmperf.py
Created November 20, 2018 14:44
pyvmomi.tests
#!/usr/bin/env python
# VMware vSphere Python SDK
# Copyright (c) 2008-2015 VMware, Inc. All Rights Reserved.
#
# 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
#
@rockaut
rockaut / gist:456fba9763e0f73df9fa75c93d508d59
Last active October 9, 2018 13:39
vmware-vm-prepare.ps1
# https://gist.github.com/rockaut/456fba9763e0f73df9fa75c93d508d59
Disable-ScheduledTask "\Microsoft\Windows\Servicing\StartComponentCleanup"
Disable-ScheduledTask "\Microsoft\Windows\WindowsUpdate\Automatic App Update"
Disable-ScheduledTask "\Microsoft\Windows\Application Experience\AitAgent"
Disable-ScheduledTask "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
Disable-ScheduledTask "\Microsoft\Windows\Application Experience\ProgramDataUpdater"
Disable-ScheduledTask "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
Disable-ScheduledTask "\Microsoft\Windows\Customer Experience Improvement Program\KernelCEIPTask"
Disable-ScheduledTask "\Microsoft\Windows\Customer Experience Improvement Program\Use CEIP"