Skip to content

Instantly share code, notes, and snippets.

View codegoalie's full-sized avatar

Chris Marshall codegoalie

View GitHub Profile
#!/bin/bash
set -e
if [ -z "$1" ]
then
echo "Please provide a version number, like 1.13.5"
exit 1
fi
@codegoalie
codegoalie / file.js
Created February 16, 2021 21:18
Disable instapage buttons for a few seconds
const buttonDelaySeconds = 5;
const selector = ".btn.url-link";
function run() {
var els = document.querySelectorAll(selector);
var origHrefs = [];
els.forEach(function (el) {
origHrefs.push(el.href);
el.style["pointer-events"] = "none";
el.style.opacity = 0.2;
@codegoalie
codegoalie / resub.sh
Created June 3, 2021 19:15
(Re)watch all of your own repos using gh cli
$ gh api graphql --paginate -f query='
query($endCursor: String) {
viewer {
repositories(first: 100, after: $endCursor) {
nodes { nameWithOwner }
pageInfo {
hasNextPage
endCursor
}
}