Example source for an itch devlog, using this devlog from 2022-02-12.
The view-source.html file was retrieved by copying the code from view source in the browser and prettifying it for easier reading.
| @{ | |
| RootModule = 'CustomTypeExample.psm1' | |
| ModuleVersion = '0.1.0' | |
| GUID = '2779fa60-0b3b-4236-b592-9060c0661ac2' | |
| Author = 'mikey' | |
| CompanyName = 'Unknown' | |
| Copyright = '(c) mikey. All rights reserved.' | |
| FunctionsToExport = @( | |
| 'New-AcceleratedClass' | |
| 'New-UsableClass' | 
Example source for an itch devlog, using this devlog from 2022-02-12.
The view-source.html file was retrieved by copying the code from view source in the browser and prettifying it for easier reading.
| #region Custom Function Definitions | |
| Function Test-Administrator { | |
| $CurrentUser = [Security.Principal.WindowsIdentity]::GetCurrent() | |
| $AdministratorRole = [Security.Principal.WindowsBuiltInRole] "Administrator" | |
| ([Security.Principal.WindowsPrincipal]$CurrentUser).IsInRole($AdministratorRole) | |
| } | |
| #endregion | |
| #region Prompt Prep | |
| # Set ENV for elevated status | 
| #requires -Version 2 -Modules posh-git | |
| function Write-Theme | |
| { | |
| param( | |
| [bool] | |
| $lastCommandFailed, | |
| [string] | |
| $with | |
| ) | 
| dsc_psrepository {'Add team module repo': | |
| dsc_name => 'foo', | |
| dsc_ensure => present, | |
| # This location is nonsense, can be any valid folder on your | |
| # machine or in a share, any location the SourceLocation param | |
| # for the DSC resource will accept. | |
| dsc_sourcelocation => 'C:\Program Files', | |
| dsc_installationpolicy => untrusted, | |
| } | 
| # frozen_string_literal: true | |
| source 'https://rubygems.org' | |
| gem 'irbtools' | |
| gem 'ruby-pwsh' | |
| gem 'fuubar' | |
| if RUBY_VERSION == "1.8.7" | 
$ConvertedFilter
(enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")
$ConvertedFilter -replace '\(enabled', '($_.enabled'
((enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368").enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")
| --- | |
| driver: | |
| name: vagrant | |
| provisioner: | |
| name: chef_zero | |
| always_update_cookbooks: true | |
| verifier: | |
| name: inspec | 
| --- | |
| driver: | |
| name: vagrant | |
| provisioner: | |
| name: chef_zero | |
| always_update_cookbooks: true | |
| verifier: | |
| name: inspec | 
| Verifying that "michaeltlombardi.id" is my Blockstack ID. https://onename.com/michaeltlombardi |