Skip to content

Instantly share code, notes, and snippets.

Danny D. dannydickson

Block or report user

Report or block dannydickson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View add_role.php
<?php
add_role(
'new_user_role',
__( 'New User Role', 'yourtextdomain' ),
array(
'read' => true,
'edit_posts' => true,
// Various Capabilities
));
@jaibeee
jaibeee / brew-perms.sh
Last active Sep 30, 2019
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.
View brew-perms.sh
#!/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
You can’t perform that action at this time.