Skip to content

Instantly share code, notes, and snippets.

View javierjeronimo's full-sized avatar

Javier J javierjeronimo

View GitHub Profile
@javierjeronimo
javierjeronimo / brew-perms.sh
Created September 30, 2019 21:11 — 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
; Removes 'Open in Atom' from the context menu.
; windows-context-menu
[-HKEY_CLASSES_ROOT\*\shell\Open File in Atom]
[-HKEY_CLASSES_ROOT\Directory\shell\Open Folder in Atom]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Open Folder in Atom]
[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\Open Folder in Atom]
; Chocolatey
[-HKEY_CLASSES_ROOT\*\shell\Atom]
#!/bin/sh
wget http://www.eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar xzf apache-maven-3.3.9-bin.tar.gz
mkdir /usr/local/maven
mv apache-maven-3.3.9/ /usr/local/maven/
alternatives --install /usr/bin/mvn mvn /usr/local/maven/apache-maven-3.3.9/bin/mvn 1
alternatives --config mvn