Skip to content

Instantly share code, notes, and snippets.

View sluxzer's full-sized avatar
🏠
WFH

Taufik Hidayat sluxzer

🏠
WFH
View GitHub Profile
@sluxzer
sluxzer / delete-workflow.md
Created December 11, 2021 19:46
Delete Github Action Workflow
version: '2.3'
services:
worker:
image: myoung34/github-runner:latest
environment:
ORG_NAME: octolab
RUNNER_NAME: do-runner
RUNNER_TOKEN: someGithubTokenHere
RUNNER_WORKDIR: /home/github/runner/work
@sluxzer
sluxzer / deletewr.sh
Created June 11, 2021 03:01 — forked from prasetyowira/deletewr.sh
gh auth login --with-token < token.txt && sudo ./deletewr.sh org/repo
#!/usr/bin/env bash
# Delete workflow runs - dwr
# Given an "owner/repo" name, such as "qmacro/thinking-aloud",
# retrieve the workflow runs for that repo and present them in a
# list. Selected runs will be deleted. Uses the GitHub API.
# Requires gh (GitHub CLI) and jq (JSON processor)
@sluxzer
sluxzer / unfollow.js
Created June 22, 2018 09:45 — forked from JamieMason/unfollow.js.md
Unfollow everyone on twitter.com
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// 1. Go to https://twitter.com/following.
// 2. Keep scrolling to the bottom repeatedly until all your followers are loaded.
// 3. Run this in your console.
[].slice.call(document.querySelectorAll('.unfollow-text')).forEach(function(button) {
button.click();
});
// If your browser is freezing because you follow *loads* of people, then try the version