Skip to content

Instantly share code, notes, and snippets.

View mrbusche's full-sized avatar

Matt Busche mrbusche

View GitHub Profile
@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)#">
@mrbusche
mrbusche / bookmarklets.txt
Created August 24, 2022 02:20
Bookmarklets
wrap any function in
javascript: (function () {
// javascript goes here
})();
minify and then create a bookmark with the URL as the minified JavaScript
// grayscale all images without an alt tag
const css = document.createElement("style");
@mrbusche
mrbusche / gist:7a9d4dc9170d5cee8b8532b9709b221e
Created February 11, 2022 14:48
prune folders recursively
# view directories
find . -type d -name node_modules -prune
#actually prune them
find . -type d -name node_modules -prune -exec rm -rf {} \;
@mrbusche
mrbusche / cryptos.js
Created October 27, 2021 22:59
cryptos
<script>
const cryptos = [
{ type: 'SHIB', amount: 1311286.32422093 },
];
const formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
});
function getTotals(cryptos) {
@mrbusche
mrbusche / cybersource.cfm
Last active September 1, 2021 03:00
Cybersource ColdFusion
this.javaSettings = {LoadPaths = [".\libraries\cybersource-rest-client-java-0.0.35.jar", ".\libraries\AuthenticationSdk-0.0.17.jar"], loadColdFusionClassPath = true, reloadOnChange = false}
//https://mvnrepository.com/artifact/com.cybersource/cybersource-rest-client-java/0.0.35
//https://mvnrepository.com/artifact/com.cybersource/AuthenticationSdk/0.0.17
<cfscript>
writeDump(retrieveFlexKey());
public String function retrieveFlexKey() throws Exception {
flexPublicKey = "NoKeyReturned";
@mrbusche
mrbusche / gist:7722a5daf1efa9f629b81f94dfe1e096
Created April 11, 2021 01:37
fatal:open /dev/null or dup failed: No such file or directory
https://www.programmersought.com/article/86564277583/
sfc /scannow
@mrbusche
mrbusche / twobed.html
Last active August 12, 2020 02:15
two bedroom
<div class='property-calendar-extreme-outer mrg-left-0 mrg-right-neg-50 row'>
<div class='outer-calendar-table col-sm-6 col-md-4 col-lg-3'>
<div class='table-wrapper'>
<table class='table property-calendar-table'>
<tbody>
<tr style='background-color:#e6e6e6;'>
<td colspan='7' class='property-calendar-td property-calendar-td-month' align='center'>Aug - 2020
</td>
</tr>
<tr>
@mrbusche
mrbusche / delete recursively.sh
Created July 16, 2020 13:38
Delete all folders and contents with name
# delete all folders with name of .idea
find . -type d -name .idea -prune -exec rm -rf {} \;
@mrbusche
mrbusche / amazonPriceDrops.js
Last active May 7, 2020 13:12
filter amazon wishlist to price drops only
// old version
javascript: (function () {function removeItemsWithoutPriceDrops(){let e=!1;const t=document.getElementsByClassName("a-spacing-none g-item-sortable");for(var r=0;r<t.length;r++){var o=t[r].querySelectorAll(".itemPriceDrop"),n=t[r].querySelectorAll("span.a-offscreen");n=n.length?(n=n[0].innerHTML).replace("$",""):0,(0==o.length||n>999999)&&(t[r].parentElement.removeChild(t[r]),e=!0)}e&&removeItemsWithoutPriceDrops()}removeItemsWithoutPriceDrops();})();
// new version
javascript: (function() { function removeItemsWithoutPriceDrops() { const lowPrice = 999999; let anyRemoved = false; const listItems = document.getElementsByClassName( "a-spacing-none g-item-sortable" ); for (var i = 0; i < listItems.length; i++) { let priceDrop = listItems[i] .querySelectorAll("span.a-size-small.a-color-tertiary")[1] .innerText.startsWith("Price dropped"); let price = priceDrop ? listItems[i].querySelectorAll("span.a-offscreen") : 0; if (!priceDrop ||