Gradle: interactive JDWP debugging of bootRun gradle task in Eclipse IDE.Python: Flask-OIDC protecting Client App and Resource Server using Windows 2019 ADFS.Kubernetes: Keycloak IAM deployed into Kubernetes cluster for OAuth2/OIDC.Kubernetes: copying files into and out of containers without ‘kubectl cp’.OAuth2: Configuring okta for OAuth2/OIDC.OAuth2: Configuring Google for OAuth2/OIDC.KVM: Creating a bridged network with NetPlan on Ubuntu 22.04.Python: migrating pip modules to newer Python version on Ubuntu.Ansible: embedding a timestamp in a file name.Kubernetes: Anthos GKE on-prem 1.13 on nested VMware environment.Terraform: creating an Ubuntu 22 template and then guest VM in vCenter.Ansible: accessing a fact from a different host using cached facts.Kubernetes: KSA must now create secret/token manually as of Kubernetes 1.24.Bash: extend timeout for idle ssh sessions using TMOUT.GCP: listing IAM roles for user, group, and service account in project and organization.GCP: LDAP authentication for Anthos VMware clusters using Anthos Identity Service.GCP: gcloud csv format with no-heading for Bash parsing.GCP: gcloud to change VM instance service account and API scope.GCP: fix kubectl auth plugin deprecation warning by installing new auth plugin.Linux: ssh-keygen to check whether ssh private key and public cert are keypair.Linux: sed to replace across multiple files in directory.Linux: openssl to validate whether private key and TLS certificate match.Linux: socat used as secure HTTPS web server.GoLang: Installing the Go Programming language on Ubuntu 22.04.GoLang: Running a Go binary as a systemd service on Ubuntu 22.04.Github: locally invoked release process for a Go binary.Github: locally invoked release process for a Gradle built Java Spring Boot project.Github: automated build and publish of containerized Spring Boot app using GitHub Actions.Github: automated Github release for Spring Boot jar using Github Actions.Gradle: running more than one command in an Exec task.Linux: xclip to place content on the clipboard.Python: suppressing warnings from Python applications.Github: automated Github release of GoLang binary using Github Actions.Github: automated build and publish of containerized GoLang app with Github Actions.GitLab: glab official CLI tool for repository operations.yq: replace section of one yaml file with content section of another.yq: update deeply nested elements in yaml.Ubuntu: fix apt warning for Dropbox with key in legacy keyring.Ubuntu: fixing apt invalid signature warnings.Python: TreeMap visualization of hierarchical Pandas DataFrame.Jekyll: exporting a WordPress blog to a static Jekyll site on Ubuntu.Bash: awk to extract Nth match from file based on line separator.Hugo: exporting a WordPress blog to a static Hugo site on Ubuntu. ![]() OpenWrt: upgrading from older OpenWrt versions to 19.x. ![]() ![]() OpenWrt: upgrading to latest version when chipset migrated to DSA support.OpenWrt: sysupgrade using Attended Sysupgrade.Linux: ssh client throwing unable to negotiate error.GCP: list of available GKE cluster versions in region and channel.Ubuntu: fixing apt NO_PUBKEY errors by converting deprecated keyring to signed-by attribute.Kubernetes: patch every array element using kubectl and jq.OpenWrt: bridge VLAN filtering for OpenWrt 21.x with DSA, isolated guest Wi-Fi.Linux: using openssl to encrypt and decrypt files and strings.Linux: using nmap to check the secure protocols and ciphers of a site.Bash: while statement with ‘read’ not processing last value.Bash: render template from matching bash variables.Bash: grep with LookBehind and LookAhead to isolate desired text.Bash: Appending to existing values using sed capture group.Ansible: regex capture groups with lineinfile to preserve yaml indentation.Stackoverflow, regex matching in a Bash if statement Wikipedia, POSIX extended regular expression Stackoverflow, why does BASH_REMATCH not work for quoted regex A simple example would be: if ] thenĮcho "The animal is a $ ![]() Take note, the right-hand side regex cannot be surrounded by quotes or it will be treated as a regular string, it cannot contain spaces, and must conform to POSIX regex rules and use character classes such as instead of “\s”. The =~ binary operator provides the ability to compare a string to a POSIX extended regular expression in the shell.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |