Skip to content

Instantly share code, notes, and snippets.

View tedkulp's full-sized avatar

Ted Kulp tedkulp

View GitHub Profile
@tedkulp
tedkulp / plugin.js
Created June 13, 2023 18:50
WIP 2 pass tdarr audio normalisation plugin. See: https://github.com/HaveAGitGat/Tdarr_Plugins/issues/305
/* eslint-disable no-unused-vars, no-await-in-loop */
module.exports.dependencies = ["axios@0.27.2"];
// PLugin runs multipass loudnorm filter
// first run gets the required details and stores for the next pass
// second pass applies the values
// stages
// Determined Loudnorm Values
// Applying Normalisation
@tedkulp
tedkulp / userscript.js
Created October 17, 2023 11:29
Tampermonkey script to skip AWS SSO login process
// ==UserScript==
// @name Auto AWS SSO Login
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*.awsapps.com/start/user-consent/authorize.html*
// @match https://*.awsapps.com/start/user-consent/login-success.html
// @match https://device.sso.us-east-1.amazonaws.com/?user_code=*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
#!/bin/bash
REAL_KUBECTL=/usr/bin/kubectl
if [[ -n "$KUBECONFIG" && -f "$KUBECONFIG" ]]; then
# Extract cluster name and server from the Freelens temp kubeconfig
export CLUSTER_NAME
CLUSTER_NAME=$(yq '.clusters[0].name' "$KUBECONFIG")
temp_server=$(yq '.clusters[0].cluster.server' "$KUBECONFIG")