profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/phbits/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

phbits/AsyncHttps 4

Uses Runspaces to issue async http requests.

phbits/WebsiteFailedLogins 2

Identifies excessive failed logins affecting IIS hosted websites.

phbits/DscBaseline 1

Creates DSC configurations based on the configuration of the current system.

phbits/AsyncTcpScan 0

Scans an IP Address for open TCP ports using Net.Sockets.TcpClient and Runspaces.

phbits/DnsBlockList 0

Automate the aggregation of DNS blocklists for the creation of Query Resolution Policies (QRP) on a Microsoft DNS server.

phbits/DscResource.DocGenerator 0

Module for generation of DSC resource documentation

phbits/iis-docs 0

Documentation for IIS

phbits/IISRFBaseline 0

Helps establish an IIS Request Filtering baseline.

phbits/minikube 0

Run Kubernetes locally

pull request commentkubernetes/minikube

Update Windows Install PowerShell Commands

@spowelljr I created a PowerShell install script and posted it to the following gist. It will prompt the user for credentials if running as a normal user and if $env:Path needs to be updated.

https://gist.github.com/phbits/8bc5a91fb2a2c46defe4ae85e9befc6e

phbits

comment created time in 4 days

Pull request review commentkubernetes/minikube

Update Windows Install PowerShell Commands

 choco install minikube {{% quiz_instruction id="/Windows/x86-64/Stable/.exe download" %}} 1. Download the [latest release](https://storage.googleapis.com/minikube/releases/latest/minikube-installer.exe).   <br>-    Or if you have `curl` installed, use this command:-    ```shell-    curl -Lo minikube.exe https://github.com/kubernetes/minikube/releases/latest/download/minikube-windows-amd64.exe-    New-Item -Path "c:\" -Name "minikube" -ItemType "directory" -Force-    Move-Item .\minikube.exe c:\minikube\minikube.exe -Force+    Or if using `PowerShell`, use this command:+    ```powershell+    New-Item -Path 'c:\' -Name 'minikube' -ItemType Directory -Force+    Invoke-WebRequest -OutFile 'c:\minikube\minikube.exe' -Uri 'https://github.com/kubernetes/minikube/releases/latest/download/minikube-windows-amd64.exe' -UseBasicParsing     ```  2. Add the binary in to your `PATH`.   <br>     _Make sure to run PowerShell as Administrator._

I don't think this is a good approach. The technical audience of this product should be comfortable launching different prompts. Especially considering a new prompt must be launched after modifying $env:PATH. The current documentation is accurate and requires minimal commands to get everything initialized.

If convenience is the goal, an install script should be used similar to the Chocolatey install. However, that could be considered an over-engineered solution to what is currently a simple process and snowball into undesired maintenance. Take for example my current system which is running WS2022 Preview. The certificate store has a limited set of trusted certificates requiring extra steps since the certificate presented by GitHub isn't trusted. By taking the convenience route, anomalies such as this must be accounted for in the installation script. Making the install script prone to bloat as well as the FAQ documenting these one-off scenarios.

The current documentation is the definition of concise. Convenience is an installation script. My aim with this PR is to provide the native PowerShell commands. 🙂

phbits

comment created time in 17 days

PullRequestReviewEvent

Pull request review commentkubernetes/minikube

Update Windows Install PowerShell Commands

 choco install minikube {{% quiz_instruction id="/Windows/x86-64/Stable/.exe download" %}} 1. Download the [latest release](https://storage.googleapis.com/minikube/releases/latest/minikube-installer.exe).   <br>-    Or if you have `curl` installed, use this command:-    ```shell-    curl -Lo minikube.exe https://github.com/kubernetes/minikube/releases/latest/download/minikube-windows-amd64.exe-    New-Item -Path "c:\" -Name "minikube" -ItemType "directory" -Force-    Move-Item .\minikube.exe c:\minikube\minikube.exe -Force+    Or if using `PowerShell`, use this command:+    ```powershell+    New-Item -Path 'c:\' -Name 'minikube' -ItemType Directory -Force+    Invoke-WebRequest -OutFile 'c:\minikube\minikube.exe' -Uri 'https://github.com/kubernetes/minikube/releases/latest/download/minikube-windows-amd64.exe' -UseBasicParsing     ```  2. Add the binary in to your `PATH`.   <br>     _Make sure to run PowerShell as Administrator._

An Administrator command prompt isn't necessary to run the commands in Step 1. It can be completed as a normal user. Whereas Step 2, it's required.

An install script could be built to do all the environment checks and error checking. Similar to how Chocolatey is installed.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

If this would be of interest, I'll volunteer to build v0.0.0.1-alpha-preview001. 🙂

phbits

comment created time in 17 days

PullRequestReviewEvent

pull request commentkubernetes/minikube

Update Windows Install PowerShell Commands

I signed it

phbits

comment created time in 18 days

PR opened kubernetes/minikube

Update Windows Install PowerShell Commands

Updated the Windows install commands to use all native PowerShell cmdlets. Thus no longer requiring curl as a prerequisite.

FWIW, in PowerShell, curl is an alias for Invoke-WebRequest so passing -Lo parameters to it will cause errors unless the real curl is installed.

PS C:\> Get-Alias curl

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           curl -> Invoke-WebRequest
+19 -20

0 comment

1 changed file

pr created time in 18 days

push eventphbits/minikube

phbits

commit sha 27a22b9afccb841c534fdec95a0ca4a2f50841b3

Update PowerShell path updates

view details

push time in 18 days

push eventphbits/minikube

phbits

commit sha 37b6b09255bdb02ca72e2d187fd82aa390ec64af

update windows install using powershell

view details

push time in 18 days

create barnchphbits/minikube

branch : fix-psh-win-install

created branch time in 18 days

push eventphbits/Sampler.GitHubTasks

phbits

commit sha d0ef3c1035ccc40825c47a39355886600f8cbb23

remove period typeo

view details

push time in 20 days

push eventphbits/Sampler.GitHubTasks

phbits

commit sha baab85c6993eb39cf9d4cace8318a5927d3f12dd

Update .build/tasks/New-Release.GitHub.build.ps1 Co-authored-by: Johan Ljunggren <johlju@users.noreply.github.com>

view details

push time in 20 days

PR opened gaelcolas/Sampler.GitHubTasks

Remove GitHub Token from Build Display. Fixes issue #17

Pull Request

Pull Request (PR) description

Removes GitHub Access Token from variable displayed during build.

This Pull Request (PR) fixes the following issues

  • Fixes #17

Task list

  • [x] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md. Entry should say what was changed and how that affects users (if applicable), and reference the issue being resolved (if applicable).
  • [ ] Documentation added/updated in README.md.
  • [ ] Comment-based help added/updated.
  • [ ] Localization strings added/updated in all localization files as appropriate.
  • [ ] Examples appropriately added/updated.
  • [ ] Unit tests added/updated.
  • [ ] Integration tests added/updated (where possible).
  • [ ] New/changed code adheres to DSC Community Style Guidelines.
+8 -1

0 comment

2 changed files

pr created time in 21 days

push eventphbits/Sampler.GitHubTasks

phbits

commit sha c8d403cea562fb8e1016c144a2a0530dec34997f

fixes issue #17

view details

push time in 21 days

create barnchphbits/Sampler.GitHubTasks

branch : issue-17

created branch time in 21 days

fork phbits/Sampler.GitHubTasks

Sampler Project Build Tasks for GitHub

fork in 21 days

create barnchphbits/Sampler.GitHubTasks

branch : issue-17

created branch time in 21 days

push eventphbits/Sampler.GitHubTasks

phbits

commit sha 8b9cb3c5921a6e9aebafd7656c4b6ec72af98f64

fixes issue #17

view details

push time in 21 days

create barnchphbits/Sampler.GitHubTasks

branch : fixes-issue-17

created branch time in 21 days

fork phbits/Sampler.GitHubTasks

Sampler Project Build Tasks for GitHub

fork in 21 days

issue openedgaelcolas/Sampler.GitHubTasks

tasks/New-Release.GitHub.build.ps1 displays token

When publishing a release, the token is printed back to the screen at:

https://github.com/gaelcolas/Sampler.GitHubTasks/blob/main/.build/tasks/New-Release.GitHub.build.ps1#L112

$getGHReleaseParams = @{
    Tag            = $ReleaseTag
    AccessToken    = $GitHubToken
    OwnerName      = $repoInfo.Owner
    RepositoryName = $repoInfo.Repository
    ErrorAction    = 'Stop'
}

Write-Build DarkGray "Checking if the Release exists: `r`n Get-GithubRelease $($getGHReleaseParams | Out-String)"

Option 1

I worked with @johlju on Hide-GitToken for DscResource.DocGenerator. That could be brought over and used for this.

Option 2

Don't display the token at all.

$displayGHReleaseParams = $getGHReleaseParams.Copy()
$displayGHReleaseParams.Remove('AccessToken')
Write-Build DarkGray "Checking if the Release exists: `r`n Get-GithubRelease $($displayGHReleaseParams | Out-String)"

created time in 21 days

GollumEvent

created tagphbits/MyModule

tagv0.2.0-preview0001

Test module to document the integration of Sampler.

created time in 21 days

release phbits/MyModule

v0.2.0-preview0001

released time in 21 days

push eventphbits/MyModule

phbits

commit sha 48fab6b33f2fc9630975bfadcb87e8590cdd25df

fix spacing

view details

push time in a month

push eventphbits/MyModule

phbits

commit sha 764a3e08c183fe9ea65ecd50b737124c0e853e24

update azure-pipelines

view details

push time in a month

push eventphbits/MyModule

phbits

commit sha 8afe11dad8b6b1b6b83c12de7884e063f1bddc74

FIX/wiki edit

view details

push time in a month

push eventphbits/MyModule

phbits

commit sha c57320b99ffe4806ec2ec06aa5062940fb20bd7f

edit wiki

view details

push time in a month

push eventphbits/MyModule

phbits

commit sha a4dfc9c07a1b3a00fa0f5adfa5611f29acdfaecb

update changelog

view details

push time in a month