Skip to content

Instantly share code, notes, and snippets.

View mrbusche's full-sized avatar

Matt Busche mrbusche

View GitHub Profile
@mrbusche
mrbusche / missing_exc_info.py
Created February 25, 2025 23:02
missing_exc_info.py
#!/usr/bin/env python3
import ast
import os
import sys
class LoggingVisitor(ast.NodeVisitor):
def __init__(self, source):
self.source = source
self.issues = []
@mrbusche
mrbusche / netflix-leaving-soon.js
Created December 20, 2024 17:08
Visually remove all movies that are not 'Leaving Soon' on netflix.com
const listItems = document.querySelectorAll('.ptrack-content');
const listItemsArray = Array.from(listItems);
for (const element of listItemsArray) {
const context = element.dataset.uiTrackingContext;
if (!context.includes('leaving.soon')) {
element.parentElement.removeChild(element)
}
}
@mrbusche
mrbusche / bridges.md
Created December 14, 2024 17:19
Bridges download
@mrbusche
mrbusche / etr.md
Last active October 16, 2024 12:33
Find intersection of 4for4 rest of season rankings and ETR top 150

Find intersection of 4for4 rest of season rankings and ETR top 150

On ETR top 150 page, run this

const top150 = document.querySelectorAll("td.ninja_clmn_nm_player");
let top150Players = [];
top150.forEach((player) =>
  player.innerText.includes(" ")
    ? top150Players.push(player.innerText.split(" (")[0])
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --no-parallel --continue build
# sdk install java 17.0.10-tem
npm install -g @cyclonedx/cdxgen
cdxgen -t java -o bom.json
CDX_MAVEN_GOAL CycloneDX Maven plugin goal to use. Default makeAggregateBom. Other options: makeBom, makePackageBom
@mrbusche
mrbusche / gist:6648e6a88e6435af9f88a850a1f734cd
Created February 17, 2023 02:58
run docker image locally
docker run -d --name sonarqube -p 9000:9000 sonarqube
docker start sonarqube
@mrbusche
mrbusche / Dockerfile
Created February 17, 2023 02:58
docker build for webapp
FROM node:18 as builder
WORKDIR /workspace
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build:prod -- --output-path=/webapp
@mrbusche
mrbusche / radar27.md
Created November 6, 2022 04:39
ThoughtWorks Technology Radar Volume 27 notes

https://www.thoughtworks.com/radar Volume 27

Techniques

Team Cognitive load

https://github.com/TeamTopologies/Team-Cognitive-Load-Assessment

Because we believe that organizational design and team interactions evolve over time, we think it's particularly important to measure and keep track of the team cognitive load, which indicates how easy or difficult teams find building, testing and maintaining their services. We've been using a template to assess team cognitive load that is based on ideas by the authors of the Team Topologies book.

@mrbusche
mrbusche / radar27.md
Created November 6, 2022 04:39
ThoughtWorks Technology Radar Volume 27 notes

https://www.thoughtworks.com/radar Volume 27

Techniques

Team Cognitive load

https://github.com/TeamTopologies/Team-Cognitive-Load-Assessment

Because we believe that organizational design and team interactions evolve over time, we think it's particularly important to measure and keep track of the team cognitive load, which indicates how easy or difficult teams find building, testing and maintaining their services. We've been using a template to assess team cognitive load that is based on ideas by the authors of the Team Topologies book.

<cfhttp method="GET" url="https://sandbox-rest.avatax.com/api/v2/taxrates/bypostalcode?country=US&postalCode=50021">
<cfhttpparam type="header" name="Authorization" value="Basic #toBase64('2006850667:E8FD4AC155E565D9')#">
</cfhttp>
<cfdump var="#deserializeJson(cfhttp.filecontent)#">