Skip to content

Instantly share code, notes, and snippets.

View skjnldsv's full-sized avatar
🎯
Focusing

John Molakvoæ skjnldsv

🎯
Focusing
View GitHub Profile
@skjnldsv
skjnldsv / github_cancel_jobs.sh
Last active February 22, 2024 14:35
A script to cancel all queued or running jobs for a given branch
#!/bin/bash
# Cancel all jobs for a given repo and branch
# https://gist.github.com/skjnldsv/ac9c7cc16698ee21f27389ad7d3185c2
# Checking token
[[ ! $GITHUB_TOKEN ]] && echo "GITHUB_TOKEN is not set or valid" && exit 1
# Extracting flags
while getopts ":r:b:o:h" flag
@skjnldsv
skjnldsv / github-status-check-sort.user.js
Last active March 1, 2024 16:43
Github status check sort
// ==UserScript==
// @name Github status check sort
// @namespace https://github.com/
// @version 1.1.3
// @description Sort the status checks on a PR by status and then by name
// @author Skjnldsv
// @match https://github.com/*/*/pull/*
// @icon https://github.githubassets.com/favicons/favicon.svg
// @grant none
// @updateURL https://gist.github.com/skjnldsv/eb7b894ae996affde4a7d0e00e0d80a1/raw/github-status-check-sort.user.js
@skjnldsv
skjnldsv / nextcloud-drone-status-sort.user.js
Last active July 24, 2023 09:41
Nextcloud drone status check sort
// ==UserScript==
// @name Nextcloud drone status check sort
// @namespace http://drone.nextcloud.com/
// @version 0.3
// @description Put Nextcloud drone failed jobs on top of the list
// @author MorrisJobke & Skjnldsv
// @match https://drone.nextcloud.com/nextcloud/*
// @icon https://github.githubassets.com/favicons/favicon.svg
// @grant none
// @updateURL https://gist.github.com/skjnldsv/d9244cf50d148d4e38319fe497f7b68c/raw/nextcloud-drone-status-sort.user.js
@skjnldsv
skjnldsv / colour-wheel-generator.markdown
Created February 15, 2018 18:45
Colour wheel generator