Skip to content

Instantly share code, notes, and snippets.

@sjenning
sjenning / disconnected-operators.md
Last active November 16, 2020 21:37
disconnected-operators
@erikerlandson
erikerlandson / podman-s2i-dir.sh
Created February 19, 2021 23:19
Example of chaining s2i podman image build using --as-dockerfile
#!/bin/bash
set -e
if [ $# -lt 2 ]; then
echo "usage: $0 <src-dir> <img-tag> [ <s2i-args> ... ]"
exit 1
fi
fail() {
echo $1
@johnsimcall
johnsimcall / 1_Setup_PowerShell_Environment.ps1
Last active September 8, 2024 12:53
PowerShell script to create required vSphere roles/permissions for OpenShift 4 installer
# Commands to install VMware PowerCLI and allow PowerShell to run scripts, if you're using a Desktop version of Windows (e.g. not Windows Server)
PS> Install-Module VMware.PowerCLI -Scope CurrentUser
PS> #Install-Module VMware.PowerCLI -Scope CurrentUser -SkipPublisherCheck -AllowClobber -Force
# The second Install-Module command can be used if you get an error regarding the authenticode signature
# PackageManagement\Install-Package : The module 'VMware.VimAutomation.Sdk' cannot be installed or updated because the
# authenticode signature of the file 'VMware.VimAutomation.Sdk.cat' is not valid.
PS> Get-Module -Name VMware.PowerCLI -ListAvailable
PS> Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
@huytd
huytd / wordle.md
Last active August 5, 2025 11:22
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode: