Skip to content

Instantly share code, notes, and snippets.

@thegiantbeast
thegiantbeast / brew-perms.sh
Created September 27, 2016 20:27 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@thegiantbeast
thegiantbeast / logout-detection.app
Created October 14, 2015 17:38
Yubikey presence detection and logout
(*
Based on: http://macscripter.net/viewtopic.php?pid=149887#p149887
1. Replace <your_id_vendor_here> and <your_id_product_here> with the respective id's.
2. When saving the file on Script Editor as AppleScript application, check the option 'Stay open'.
3. Add the application to your login items.
4. Logout & login.
Note: This logic works better when Challenge-Response is used for login, since the key
@thegiantbeast
thegiantbeast / keybase.md
Last active December 28, 2019 15:27
keybase proof

Keybase proof

I hereby claim:

  • I am thegiantbeast on github.
  • I am thegiantbeast (https://keybase.io/thegiantbeast) on keybase.
  • I have a public key ASB-Awl7VbUUuIEqe4uHLz7q7Y6D-M5f6v9sWyNDdO0PGAo

To claim this, I am signing this object:

Note: Had to use '-' instead of '/' on filenames since github gists doesn't support folder structure.
PLAY [my.own.host.local] ******************************************************
GATHERING FACTS ***************************************************************
ok: [127.0.0.1]
TASK: [checkVersion | set_fact ] **********************************************