Skip to content

Instantly share code, notes, and snippets.

View mcncl's full-sized avatar
🐊

mcncl mcncl

🐊
View GitHub Profile
@mcncl
mcncl / cancel_all_running_builds.sh
Created March 27, 2024 00:13
Cancel all running Buildkite builds
#!/bin/bash
# Make API call to retrieve initial objects and extract URLs
urls=($(http -I -A bearer --auth "$TOKEN" GET "https://api.buildkite.com/v2/organizations/ORG/builds?state=running" | jq -r '.[] | .url'))
# Loop through URLs, append /cancel, and make API calls
for url in "${urls[@]}"; do
cancel_url="${url}/cancel"
echo "Making API call to cancel: $cancel_url"
@mcncl
mcncl / pipe
Created October 4, 2022 04:44
Hooks
#!/bin/bash
set -euo pipefile
echo Hello
@mcncl
mcncl / main.go
Created October 11, 2019 23:29
Golang Pointer Example
package main
import "fmt"
type house struct {
occupant string
}
func (houseLocation *house) changeTenant(newTenant string) {
(*houseLocation).occupant = newTenant

Keybase proof

I hereby claim:

  • I am mcncl on github.
  • I am benmc (https://keybase.io/benmc) on keybase.
  • I have a public key ASAwxyU19je8fBDtN2dEjVjUc5CPdzr0YPENXFp9nPujLAo

To claim this, I am signing this object: