Skip to content

Instantly share code, notes, and snippets.

View brevity's full-sized avatar

Andrew Toelle brevity

View GitHub Profile
@brevity
brevity / brew-perms.sh
Last active February 8, 2017 11:37 — 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
sudo chgrp -R admin /usr/local
sudo chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@brevity
brevity / H2m8-0.js
Created April 26, 2017 20:44
null created by brevity - https://repl.it/H2m8/0
// a mock would look like...
let daily = [
{
//....
},
{
name: `2017-01-01.md`,
path: `/User/brevity/code/notes/2017-01-01.md`,
stat: {
blocks: 8
@brevity
brevity / 1_simple.go
Created March 10, 2021 20:32 — forked from sosedoff/1_simple.go
Golang Custom Struct Tags Example
package main
import (
"fmt"
"reflect"
)
// Name of the struct tag used in examples
const tagName = "validate"