I hereby claim:
- I am slmcmahon on github.
- I am stephenmcmahon (https://keybase.io/stephenmcmahon) on keybase.
- I have a public key ASD4BscMvtnGkbOiIB2wmfyAE_varu4UgicLb_ovQ5gEPwo
To claim this, I am signing this object:
| function Get-CurrentContext { | |
| # Get the output of 'kubectl config get-contexts' and convert it to a string array | |
| $contexts = kubectl config get-contexts | Out-String -Stream | |
| # Split the output into lines and remove empty lines | |
| $lines = $contexts | Where-Object { $_.Trim() -ne "" } | |
| # Parse the header to determine column positions | |
| $headerLine = $lines[0] |
| #!/bin/bash | |
| threshold_days=30 | |
| echo 'Extracting all AZURE_CLIENT_IDs...' | |
| kubectl get deployments -o json \ | |
| | jq -r ' | |
| .items[] | |
| | .spec.template.spec.containers[] |
| #!/usr/bin/env pwsh | |
| $thresholdDays = 30 | |
| Write-Host "Extracting all AZURE_CLIENT_IDs..." | |
| # Get all unique AZURE_CLIENT_ID values from deployments | |
| $clientIds = kubectl get deployments -o json | ConvertFrom-Json | | |
| ForEach-Object { $_.items } | | |
| ForEach-Object { |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| if [ $# -eq 0 ]; then | |
| # if no namespace was passed, then get the currently selected namespace | |
| ns=$(kubectl config get-contexts | awk '$1 == "*" {print $5}') | |
| else | |
| ns=$1 | |
| fi | |
| # get the rolebinding for the response matching ROLE = "Role/edit" |
| import json | |
| import requests | |
| import os | |
| from requests.auth import HTTPBasicAuth | |
| org = 'your-org' | |
| project = 'your-project' | |
| # the variableGroupId values from the variable libs that | |
| # you want to compare |
| from bs4 import BeautifulSoup | |
| import requests | |
| import collections | |
| currencies = [] | |
| Currency = collections.namedtuple('Currency', 'country usd') | |
| sd = requests.get("https://www.x-rates.com/table/?from=USD&amount=1") | |
| sp = BeautifulSoup(sd.content, 'html.parser') | |
| table = sp.find('table', {"class": "tablesorter ratesTable"}) |
| const axios = require('axios'); | |
| const cheerio = require('cheerio'); | |
| const url = 'https://www.infoplease.com/us/postal-information/state-abbreviations-and-state-postal-codes'; | |
| axios.get(url).then(response => { | |
| const $ = cheerio.load(response.data); | |
| $('table.sgmltable tr').each((i, elem) => { | |
| const children = $(elem).children() | |
| const stateName = $(children[0]).text(); |
| const axios = require('axios'); | |
| const cheerio = require('cheerio'); | |
| const url = 'https://www.x-rates.com/table/?from=USD&amount=1'; | |
| axios.get(url).then(response => { | |
| const $ = cheerio.load(response.data); | |
| $('table.ratesTable tr').each((i, elem) => { | |
| const children = $(elem).children() | |
| const country = $(children[0]).text(); |