Skip to content

Instantly share code, notes, and snippets.

View kbaynes's full-sized avatar

Kevin Baynes kbaynes

View GitHub Profile
@kbaynes
kbaynes / add_sudoer_mac.md
Last active November 9, 2022 15:44
Add sudoer on Mac

Add an Account to sudoers on Mac

To add an account to the list of sudoers, you'll need an administrator account.

Test your sudo access by running a simple command, such as:

If you simply want to make sure that your current user has sudo access AND this command works, then you already have sudo access and you're done.

sudo echo hello world
@kbaynes
kbaynes / remove_docker_images_by_tag.sh
Last active January 31, 2021 15:57
Remove Docker image where tag is <none>
#!/bin/env bash
# Use: remove docker images where tag is "<none>"
# uses unix pipes
# command parts explained:
# docker images : list all of the images in Docker. Each line looks like:
# "maven 3.6.3-adoptopenjdk-11 b6e818035058 10 days ago 540MB"

Keybase proof

I hereby claim:

  • I am kbaynes on github.
  • I am k9b9 (https://keybase.io/k9b9) on keybase.
  • I have a public key ASDdwfr0iXUIkBhf-tW10xJwVfRCqA-ILOhdgrNq_3xm7Ao

To claim this, I am signing this object: