Skip to content

Instantly share code, notes, and snippets.

View gaquino's full-sized avatar

Gustavo Aquino gaquino

View GitHub Profile
@gaquino
gaquino / gist:87bdf0e6e852e445c0489379d3e9732a
Last active April 15, 2024 06:52
MacOS (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools))
If you are facing an error like that on new MacOS version.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
It means that you need to install XCode command line, open a Terminal and run this command:
$ xcode-select --install
Note:
If you want to download and install Command Line tools manually, it can be downloaded from: https://developer.apple.com/download/more/
@gaquino
gaquino / gist:e41b946fd624355f37e9079a1c0792f5
Last active November 10, 2020 18:22
Setup Amazon EC2 - Java 8 + Maven
---- install Oracle JDK 1.8
$ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.rpm
$sudo yum install -y jdk-8u141-linux-x64.rpm
---- install OpenJDK
$ vi install.sh
yum install -y java-1.8.0-openjdk-devel
yum remove java-1.7.0-openjdk
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
@gaquino
gaquino / gist:19d1bb7402cbeed292c0
Created September 13, 2015 03:02
Grafana-Graphite-Vagrant
https://github.com/pkkummermo/grafana-vagrant-puppet-box
Vagrant.configure("1") do |config|
config.vm.box = "puppet_ubuntu12"
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210.box"
#config.vm.box = "ubuntu/trusty64"
# config.vm.box_url = "https://vagrant-kvm-boxes.s3.amazonaws.com/trusty64_kvm.box"
@gaquino
gaquino / gist:e8e297bd52fdbfb7f007
Last active August 29, 2015 14:07
Install OpenCV with Python module at Mac
1-) Download and install Brew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
$ brew upgrade
$ brew install wget
$ brew install cmake
2-) Download and install OpenCV 2.4.9
$ wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.9/opencv-2.4.9.zip?r=http%3A%2F%2Fopencv.org%2Fdownloads.html&ts=1413724769&use_mirror=ufpr