We'll use pyenv to manage python versioning and venv (comes with python 3) to manage virtual environments.
Pyenv allows you to have several python versions in your machine.
brew update| # Taps | |
| tap 'homebrew/bundle' | |
| # Install CLI Tools | |
| ## Shell Utilities | |
| brew 'coreutils' | |
| brew 'findutils' | |
| brew 'zsh' | |
| brew 'zsh-completions' | |
| brew 'docker-compose' |
| #!/bin/bash | |
| # Visual Studio IntelliCode | |
| code --install-extension visualstudioexptteam.vscodeintellicode | |
| # Python | |
| # ============== # | |
| # Basics |
We'll use pyenv to manage python versioning and venv (comes with python 3) to manage virtual environments.
Pyenv allows you to have several python versions in your machine.
brew updateIf you are use Unix/Linux create a bash script with a loop. In this case I want to backup the extensions list and install again:
First create a list of the extensions:
$ code --list-extensions > extensions.txtCreate a bash script for example with the name vscode-extension-install.sh and input the following code:
| #!/bin/bash | |
| # Install Quake 3: Arena on a mac | |
| # Copyright (c) 2016 simonewebdesign | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
This document will help you set up python for development on MacOS.
Pyenv allows you to have several python versions in your machine.
brew update| ## Creating user profile for name.surname | |
| # Add a user to the system while creating a folder for him/her | |
| useradd -m name.surname | |
| # Change shell to bash | |
| chsh -s /bin/bash name.surname | |
| # Add user to a group called ai | |
| usermod -a -G ai name.surname |
| # Check all containers | |
| docker ps -a | |
| # Check all images | |
| docker images | |
| #in docker-compose (docker-compose.yml file) | |
| docker-compose up | |
| # Build an image called datascience from |
| # This file should be placed in ~/.ssh/ folder | |
| # along with the private keys specified for each host | |
| # To access raspberry machine type ssh raspberry in terminal | |
| Host raspberry | |
| HostName 0.0.0.0 | |
| User pi | |
| Port 5555 | |
| IdentityFile ~/.ssh/id_rsa_rpi_2 |
People
:bowtie: |
๐ :smile: |
๐ :laughing: |
|---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |