This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How I can see the used space / free space on a compute node with local storage? | |
vgdisplay cinder-volumes | |
or | |
pvdisplay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo `date "+%Y-%m-%d-%H-%M-%S"` | |
# outptut - 2017-05-22-14-38-18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7 | |
sudo yum install epel-release | |
sudo yum update | |
sudo yum install nginx | |
# start nginx | |
sudo systemctl start nginx | |
# If you are running a firewall, run the following commands to allow HTTP and HTTPS traffic: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export INTERNAL_DOCKER_HOST="tcp://$(docker run --rm busybox ip route show | grep ^default | cut -f3 -d ' '):2375" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# provide an alias to the host local loopback | |
sudo ifconfig lo0 alias 172.20.123.1 | |
# check alias | |
ifconfig|more | |
# ping alias from within docker | |
docker run -it --rm busybox ping 172.20.123.1 | |
# check that the host services are accessible from the aliased IP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To disable firewalld, run the following command as root: | |
systemctl disable firewalld | |
# To stop firewalld, run the following command as root: | |
systemctl stop firewalld | |
# start firewalld | |
systemctl start firewalld | |
# status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -avz --exclude ./docker-volumes . <user>@<ip-address>:/user/<remote-folder>/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose up --force-recreate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install numpy | |
brew install scipy | |
brew install matplotlib | |
--- | |
*VirtualEnv* | |
$ mkvirtualenv ml | |
$ cd .virtualenvs/ml/ | |
$ ln -s /usr/local/lib/python2.7/site-packages/{numpy,scipy}* lib/python2.7/site-packages/ | |
$ workon ml | |
(ml) $ pip freeze | grep -i numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On OS X | |
$ vi ~/.bash_profile | |
# Add following for running spark, pyspark, jupyter | |
#----- | |
# FOR SPARK | |
#----- | |
# | |
# for PYSPARK |
OlderNewer