Skip to content

Instantly share code, notes, and snippets.

Github Action/Workflow Updater

Requirements

  • yq
  • gh
  • gh logged into github

Usage

@mbruno-kr
mbruno-kr / README.md
Last active June 20, 2022 15:25
Auto fill timesheets

Auto Fill ur Oneview timesheets :)

Install

  1. Download a plugin called code injector.

    1. Chrome Extension
  2. Add the host oneview\.kroger\.com

/* eslint-disable @typescript-eslint/no-explicit-any */
import { pickBy } from 'lodash';
import React, { Suspense } from 'react';
/**
*
* @example Dynamically Load Component
* <LazyComponent<PropsOfElement>
* component={()=> import('./Element')}
* any="props"
@mbruno-kr
mbruno-kr / README.md
Last active October 7, 2021 22:13
Pact download binary

Pact Downloader

Downloads the latest pact binary via wget & curl. Both wget and curl work well with corporate firewalls and proxy settings; assuming you have your system propery configured.

Installation

  1. Add this file to your repo under a scripts folder.
  2. Run yarn add -D shelljs pino (NOTE if you wish to not have pino, it can be stripped out)
  3. Run node ./scripts/pact-download.js
#!/usr/bin/env bash
apt-get update
download () {
curl --silent --show-error --location --fail --retry 3 \
--output "$1" "$2"
}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fullfill-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: internal
rules:
- http:
@mbruno-kr
mbruno-kr / namecase.js
Last active July 21, 2021 18:23
To NameCase
function capitalizeFirstLetter(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
}
function toNameCase(str) {
return str.split(" ").map(capitalizeFirstLetter).join(" ")
}
console.log(toNameCase("banana man"))
console.log(toNameCase("ole McDonald"))