Affichage des articles dont le libellé est onestep. Afficher tous les articles
Affichage des articles dont le libellé est onestep. Afficher tous les articles

dimanche, décembre 28, 2014

install MongoDB latest release on MacOS



install MongoDB latest version on MacOS 64Bits

curl -L http://downloads.mongodb.org/osx/mongodb-osx-x86_64-latest.tgz -o mongodb-osx-latest.tgz && rm -Rf mongodb && sudo rm -Rf /usr/local/bin/mongo* && sudo rm -Rf /usr/local/bin/bsondump && mkdir mongodb && tar -xvzf mongodb-osx-latest.tgz --strip-components=1 -C mongodb && for f in $(pwd)/mongodb/bin/*; do sudo ln -s $f /usr/local/bin/$(basename $f); done

Note : will ask sudo password
Note : see urls here http://www.mongodb.org/dl/osx
Note : to run it
mkdir -p $(pwd)/mongodb/data/db && mongod --dbpath $(pwd)/mongodb/data/db

install MongoDB latest version on MacOS 32Bits

curl -L http://downloads.mongodb.org/osx/mongodb-osx-i386-latest.tgz -o mongodb-osx-latest.tgz && rm -Rf mongodb && sudo rm -Rf /usr/local/bin/mongo* && sudo rm -Rf /usr/local/bin/bsondump && mkdir mongodb && tar -xvzf mongodb-osx-latest.tgz --strip-components=1 -C mongodb && for f in $(pwd)/mongodb/bin/*; do sudo ln -s $f /usr/local/bin/$(basename $f); done

Note : will ask sudo password
Note : see urls here http://www.mongodb.org/dl/osx
Note : to run it
mkdir -p $(pwd)/mongodb/data/db && mongod --dbpath $(pwd)/mongodb/data/db

install nodejs latest release


Install nodejs latest release on MacOS

curl -sSL http://nodejs.org/dist/latest | grep pkg | sed -E 's/.*>(node.*pkg).*/\1/' | xargs -I '{}' curl --write-out %{url_effective} -L -O http://nodejs.org/dist/latest/'{}' | sed -E 's/.*\/(node.*pkg)/\1/' | xargs -I '{}' echo launch '{}'

Note : you have to launch the pkg file
Note : the pkg file will launch an UI


Install nodejs latest release on Linux 64bits

curl -sSL http://nodejs.org/dist/latest | grep linux | grep 64 | sed -E 's/.*>(node.*gz).*/\1/' | xargs -I '{}' curl --write-out %{filename_effective} -L -O http://nodejs.org/dist/latest/'{}' | xargs -I '{}' tar -xvzf '{}'

mercredi, décembre 10, 2014

Github and curl - Get asset and latest release


GET URL LIST OF ALL ASSET  OF ALL RELEASE

curl -sL https://api.github.com/repos/OWNER/REPO/releases | grep 
tarball_url | cut -d '"' -f 4

GET URL OF THE VERY LAST RELEASE

curl -sL https://api.github.com/repos/OWNER/REPO/releases | grep tarball_url | head -n 1 |  cut -d '"' -f 4


DOWNLOAD THE VERY LAST RELEASE

curl -sL https://api.github.com/repos/OWNER/REPO/releases | grep tarball_url | head -n 1 |  cut -d '"' -f 4 | xargs curl -L -J -O






Note 1 : do not forget to replace OWNER  and REPO
Note 2 : API  github https://developer.github.com/v3/repos/releases/




Install docker on ubuntu


curl -sSL https://get.docker.com/ubuntu/ | sudo sh