Skip to content

Instantly share code, notes, and snippets.

View gregory-seidman's full-sized avatar

Gregory Seidman gregory-seidman

  • Columbia, MD
View GitHub Profile
@gregory-seidman
gregory-seidman / CloneTestPlan.user.js
Created April 29, 2019 04:00
GreaseMonkey script to add a button to clone a test plan in Azure DevOps
// ==UserScript==
// @name CloneTestPlan
// @description Azure DevOps Clone Test Plan Button
// @match https://dev.azure.com/*/*/_testManagement?planId=*
// @version 1.0
// @run-at document-end
// @grant unsafeWindow
// ==/UserScript==
function cloneTestPlan() {
// ==UserScript==
// @name StyleGoogleCalendar
// @namespace https://pieinsurance.com/
// @version 0.1
// @description make meeting responses more distinct
// @author Gregory Seidman
// @match https://calendar.google.com/calendar/*
// @icon https://www.google.com/s2/favicons?domain=google.com
// @grant GM_addStyle
// ==/UserScript==
@gregory-seidman
gregory-seidman / AwsSsmToAppSettings.ps1
Last active November 5, 2021 20:49
Turn AWS ServiceManager configuration into nested JSON
#!/usr/bin/env powershell
param (
[ValidateScript({
if ($_ -eq $null) {
return $true
}
if (-Not ($_ | Test-Path -PathType Leaf) ) {
throw "Input file is a directory or does not exist"
}
return $true
// ==UserScript==
// @name XKCD hover text
// @version 1
// @include https://xkcd.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const id = "comic-title";
// ==UserScript==
// @name SMBC hover text
// @include https://www.smbc-comics.com/comic/*
// @version 1
// @grant unsafeWindow
// ==/UserScript==
(function() {
'use strict';
const id = "cc-comic-title";
@gregory-seidman
gregory-seidman / focus-dotnet-search.user.js
Last active July 3, 2023 18:54
GreaseMonkey/TamperMonkey script to put input focus on the search box when loading the .NET API search page
// ==UserScript==
// @name Focus .NET Search
// @namespace https://gist.github.com/gregory-seidman/dd8b7a93f4603ef3e484c82d45809a95
// @version 1.1.1
// @description Put input focus on the search box when loading the .NET API search page
// @author Gregory Seidman
// @downloadURL https://gist.github.com/gregory-seidman/267eabccd74c2efd5c0f16c2d223af01/raw/focus-dotnet-search.user.js
// @updateURL https://gist.github.com/gregory-seidman/267eabccd74c2efd5c0f16c2d223af01/raw/focus-dotnet-search.user.js
// @match https://docs.microsoft.com/en-us/dotnet/api/*
// @grant none
@gregory-seidman
gregory-seidman / focus-aws-sso-authorize-allow.user.js
Last active March 11, 2024 21:28
GreaseMonkey/TamperMonkey script to put input focus on the Allow button for AWS CLI SSO login
// ==UserScript==
// @name AWS SSO Focus Allow button
// @namespace https://gist.github.com/gregory-seidman/dd8b7a93f4603ef3e484c82d45809a95
// @version 1.0.4
// @description Focus authorize allow button when confirming AWS CLI SSO login
// @downloadURL https://gist.github.com/gregory-seidman/33a2f4174871bc42966f34e1e7c4ec01/raw/focus-aws-sso-authorize-allow.user.js
// @updateURL https://gist.github.com/gregory-seidman/33a2f4174871bc42966f34e1e7c4ec01/raw/focus-aws-sso-authorize-allow.user.js
// @author Gregory Seidman
// @match https://*.awsapps.com/start/user-consent/authorize.html?*
// @icon https://www.google.com/s2/favicons?domain=awsapps.com
@gregory-seidman
gregory-seidman / AwsSsoCreds.ps1
Created November 2, 2021 20:30
Script to log into AWS via SSO and get credentials that can be used programmatically
#!/usr/bin/env pwsh
param (
[Parameter(Position=0)]
[string]$ProfileFilter = $null,
[switch]$NoLogin
)
if ((Get-Command -ErrorAction SilentlyContinue aws) -eq $null) {
Write-Error "The AWS CLI must be installed, try: winget install Amazon.AWSCLI"
// ==UserScript==
// @name AWS SSO Start Page
// @namespace https://gist.github.com/gregory-seidman/dd8b7a93f4603ef3e484c82d45809a95
// @version 1.1.3
// @description Expand all account options
// @author Gregory Seidman
// @downloadURL https://gist.github.com/gregory-seidman/69be84cdd286dd5459cccde10a570ae4/raw/expand-sso-aws-login-options.user.js
// @updateURL https://gist.github.com/gregory-seidman/69be84cdd286dd5459cccde10a570ae4/raw/expand-sso-aws-login-options.user.js
// @match https://*.awsapps.com/start*
// @icon https://www.google.com/s2/favicons?sz=64&domain=awsapps.com