I hereby claim:
- I am elovelan on github.
- I am elovelan (https://keybase.io/elovelan) on keybase.
- I have a public key ASCApvXV9xj9b-uqxX6-gbD1uu0sbCHN2pBqm8cwjsNfrgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Sure, Github wins on the UI. Hands down. But, despite my initial annoyance with Gerrit when I first started using it almost a year ago, I am now a convert. Fully. Let me tell you why.
Note: This is an opinionated (on purpose) piece. I assume your preferences are like mine on certain ideas, such as:
function Get-ParameterValues { | |
<# | |
.Synopsis | |
Get the actual values of parameters which have manually set (non-null) default values or values passed in the call | |
.Description | |
Unlike $PSBoundParameters, the hashtable returned from Get-ParameterValues includes non-empty default parameter values. | |
NOTE: Default values that are the same as the implied values are ignored (e.g.: empty strings, zero numbers, nulls). | |
.Link | |
https://gist.github.com/Jaykul/72f30dce2cca55e8cd73e97670db0b09/ | |
.Link |
Been thinking a lot about this feature. I've been fighting with it quite a bit for installing SxS packages
Some examples of packages that can be sensibly installed side-by-side:
Here are some of the issues:
param ( | |
$filename | |
) | |
$instanceReplace = @{} | |
$instanceRemove = @("ConfigurationName") | |
$metadataReplace = @{ | |
'Version="[0-9.]*"' = 'Version="1.0.0"' | |
} | |
$metadataRemove = @( |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
function ConvertFrom-GlobalVariables { | |
param( | |
[hashtable]$ExpectedVariables, | |
[string]$ScriptPath | |
) | |
$ExpectedVariables.Keys | ForEach-Object { | |
Set-Variable -Name $_ -Value $ExpectedVariables[$_] | |
} |
Setting up puppetserver (2.0.0.SNAPSHOT.2015.03.14T0121-1puppetlabs1) ... | |
/var/lib/dpkg/info/puppetserver.postinst: 3: /var/lib/dpkg/info/puppetserver.postinst: /usr/share/puppetserver/scripts/install.sh: not found | |
dpkg: error processing package puppetserver (--configure): | |
subprocess installed post-installation script returned error exit status 127 |
(function() { | |
/* Edit if you have a slow connection! */ | |
var delayInSeconds = 2; | |
var csv = ""; | |
function download() { | |
var dataRows, getNext, max, curr = 0, nextPage; | |
nextPage = $("a.next_page"); | |
dataRows = $("tr.doc"); | |
max = dataRows.length; |
Function PrintDetails | |
{ | |
Param ( | |
$ComputerName, | |
$DriveLetter = "", | |
$VolumeName = "", | |
$Error = "" | |
) | |
$obj = New-Object PSObject |