Skip to content

Instantly share code, notes, and snippets.

View mikeller's full-sized avatar
💭
🐳

Michael Keller mikeller

💭
🐳
  • 01:46 (UTC +13:00)
View GitHub Profile
@mikeller
mikeller / aws_sso_auto_authorise_tampermonkey.js
Last active August 19, 2024 14:09
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
Last active November 16, 2024 11:08
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
def print_stderr(*args, **kwargs):
@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: