Skip to content

Instantly share code, notes, and snippets.

View mikeller's full-sized avatar
💭
🐳

Michael Keller mikeller

💭
🐳
View GitHub Profile
@mikeller
mikeller / aws_sso_auto_authorise_tampermonkey.js
Last active April 18, 2024 01:28
AWS CLI SSO Auto Authorise Script for TamperMonkey
// ==UserScript==
// @name AWS CLI SSO Auto Authorise
// @namespace http://tampermonkey.net/
// @version 0.1.1
// @description Automatically authorise all AWS CLI SSO login requests.
// @author Michael Keller
// @icon https://www.google.com/s2/favicons?domain=aws.com
// @match https://device.sso.ap-southeast-2.amazonaws.com/*
// @match https://<your start URL>.awsapps.com/start/*
// @run-at document-end
@mikeller
mikeller / gitlab_remove_expired_artifacts_by_group.py
Created February 20, 2024 20:57
gitlab_remove_expired_artifacts_by_group.py
#!/usr/bin/env python3
import time
import requests
import sys
from datetime import datetime, timezone
from dateutil import parser
import re
if len(sys.argv) != 4:
@mikeller
mikeller / gitlab_remove_expired_artifacts.py
Created December 13, 2023 22:19
Python script to remove expired artefact from merged pull requests and branches. (Usage: gitlab_remove_expired_artifacts.py <server> <token> <project id>...)
#!/usr/bin/env python3
import time
import requests
import sys
from datetime import datetime, timezone
from dateutil import parser
import re
if len(sys.argv) < 4: