Skip to content

Instantly share code, notes, and snippets.

View kentblake's full-sized avatar

Kent Blake kentblake

View GitHub Profile
@kentblake
kentblake / codespace-PAT.md
Last active June 7, 2022 07:30
codespace-PAT

PAT-Codespace-kb

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

@kentblake
kentblake / psAsync.md
Created May 5, 2022 05:53
powerShellStarterAsync.ps1

param ( [Parameter(Mandatory)] [ValidateNotNullOrEmpty()] [string[]]$ServerName )

foreach ($s in $ServerName) { $scriptBlock = { if (Test-Connection -ComputerName $args[0] -Quiet -Count 1) { $null = New-Item -Path "\$($args[0])\c$\SomeFolder" -ItemType Directory -Force

@kentblake
kentblake / google-cloud-cli-f35.md
Created April 11, 2022 17:18
Installing Google Cloud CLI on Fedora 35

The gcloud CLI is available in package format for installation on Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Fedora 33, Fedora 34, CentOS 7, and Centos 8 systems. This package contains the gcloud, gcloud alpha, gcloud beta, gsutil, and bq commands only. It doesn't include kubectl or the App Engine extensions required to deploy an application using gcloud commands, which can be installed separately as described later in this section. Installation

Update DNF with gcloud CLI repo information. The following sample command is for a Red Hat Enterprise Linux 8-compatible installation. For a Red Hat Enterprise Linux 7-compatible installation, replace el8 with el7 in the value for baseUrl.

sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM [google-cloud-cli] name=Google Cloud CLI baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el8-x86_64 enabled=1

@kentblake
kentblake / dotfilesworthsaving.md
Last active March 10, 2022 03:45
DotFilesPseudoCode

This is a collection of files thoughts and code snippets forming the basis of automated acme linux setups

ACME linux is my idea of pulling a string and then the distro is setup in the way that I like

System Files

  • boot
  • mounts
  • servces
@kentblake
kentblake / PAT-gkgen-kentblake-github.gfm
Last active December 20, 2021 17:47
PAT-gkgen-kentblake-github
p4cb4c2ce10d5a517eeb7ab210a9b41baafb8767c
@kentblake
kentblake / PSAskUser.md
Created November 4, 2021 19:42
PS Gui Question Snip

Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing

$form = New-Object System.Windows.Forms.Form $form.Text = 'Data Entry Form' $form.Size = New-Object System.Drawing.Size(300,200) $form.StartPosition = 'CenterScreen'

$okButton = New-Object System.Windows.Forms.Button $okButton.Location = New-Object System.Drawing.Point(75,120)

@kentblake
kentblake / sd-ns-for-containers
Last active July 21, 2021 20:18
systemd-nspawn for containers
* Ensure ker
@kentblake
kentblake / chocoinstall.gfm
Last active July 3, 2021 16:32
chocoinstall.ps1
<#
.SYNOPSIS
Downloads and installs Chocolatey on the local machine.
.DESCRIPTION
Retrieves the Chocolatey nupkg for the latest or a specified version, and
downloads and installs the application to the local machine.
.NOTES
=====================================================================

Dns Assets:

  • kbcicd.dev - 203.151.145.59Dn
@kentblake
kentblake / CourseraPYModernAps.md
Created April 28, 2021 00:22
Coursera - Building Modern Python Applications on AWS

‎‎​