Skip to content

Instantly share code, notes, and snippets.

View gavinelder's full-sized avatar
🌴
Taking a break.

Gavin gavinelder

🌴
Taking a break.
  • Scotland
  • 21:39 (UTC +01:00)
View GitHub Profile
@gavinelder
gavinelder / micro-os-updates.sh
Created December 18, 2023 10:11
Small script to call macOS Updates via MicroMDM
#!/bin/bash
# Source environment variables
source "$MICROMDM_ENV_PATH"
# Define API endpoints
devices_endpoint="v1/devices"
commands_endpoint="v1/commands"
# Function to validate OS version
@gavinelder
gavinelder / s3-curl-backups.md
Created December 18, 2018 10:23 — forked from jareware/s3-curl-backups.md
Simple, semi-anonymous backups with S3 and curl

⇐ back to the gist-blog at jrw.fi

Simple, semi-anonymous backups with S3 and curl

Backing stuff up is a bit of a hassle, to set up and to maintain. While full-blown backup suites such as duplicity or CrashPlan will do all kinds of clever things for you (and I'd recommend either for more complex setups), sometimes you just want to put that daily database dump somewhere off-site and be done with it. This is what I've done, with an Amazon S3 bucket and curl. Hold onto your hats, there's some Bucket Policy acrobatics ahead.

There's also a tl;dr at the very end if you just want the delicious copy-pasta.

Bucket setup

@gavinelder
gavinelder / keybase.md
Last active October 21, 2017 12:08
keybase.md

Keybase proof

I hereby claim:

  • I am gavinelder on github.
  • I am setsquared (https://keybase.io/setsquared) on keybase.
  • I have a public key ASDhy1f5TZdrl4SOBNkizKeXnOAAuK2iyU45hfG-4hIOxAo

To claim this, I am signing this object: