Skip to content

Instantly share code, notes, and snippets.

@psatler
Last active July 14, 2020 18:28
Show Gist options
  • Save psatler/72fc62b617414f46d8ae42630062050e to your computer and use it in GitHub Desktop.
Save psatler/72fc62b617414f46d8ae42630062050e to your computer and use it in GitHub Desktop.

update-alternatives --list python

sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.8 3

Found at https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux.

Make pip point to a python 3.x version: https://stackoverflow.com/questions/38938205/how-to-override-the-pip-command-to-python3-x-instead-of-python2-7.

The VM in fact

usar o QEMU como VM

Seguir passo a passo do: https://github.com/foxlet/macOS-Simple-KVM Documentado aqui em video tb: https://www.youtube.com/watch?v=p-pJ3qCse20

Ao tentar rodar maquina virtual pelo Virt-Manager pode acontecer o erro de permissão negada (Permission denied) para acessar o disco. Para resolver:

sudo gedit /etc/libvirt/qemu.conf

descomente as linhas: user e group para ficarem como root. Then restart libvirtd:

service libvirtd restart

Using Snap

Based on this issue.

Using Docker OSX

Other sources

After installation steps

Installing some tools for programming, such as for React Native development.

    • TOOLS TO INSTALL VIA TERMINAL

➜ ~ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

➜ ~ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

➜ ~ brew install git-lfs

➜ ~ brew install yarn && brew install node && brew install watchman

➜ ~ brew tap AdoptOpenJDK/openjdk

➜ ~ brew cask install adoptopenjdk8

➜ ~ sudo gem install cocoapods

➜ ~ sudo gem install fastlane

➜ ~ npm i -g react-native

➜ ~ brew install git-lfs

➜ ~ brew upgrade

➜ ~ sudo npm cache clean -f

➜ ~ sudo npm install -g n

➜ ~ sudo n stable

    • SETTING UP SSH:

➜ ~ ssh-keygen -t rsa -b 4096 -C "johndoe@company.com.br" Enter file in which to save the key (/Users/lab/.ssh/id_rsa): /Users/lab/.ssh/gitlab

➜ ~ ssh-keygen -t rsa -b 4096 -C "john@doe.com.br" Enter file in which to save the key (/Users/lab/.ssh/id_rsa): /Users/lab/.ssh/github

➜ ~ eval "$(ssh-agent -s)"

➜ ~ ssh-add -K ~/.ssh/github

➜ ~ ssh-add -K ~/.ssh/gitlab

➜ ~ touch ~/.ssh/config Conteúdo: Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/gitlab ou gitHub

➜ ~ git config --global user.name "John Doe"

➜ ~ git config --global user.email "john@doe.com.br"

    • CLONE AND SET UP REACT NATIVE PROJECT:

➜ ~ git clone git@gitlab.com.br:project.git

➜ rmc git:(master) git checkout develop

➜ rmc git:(develop) git-lfs install

➜ rmc git:(develop) git-lfs pull

➜ rmc git:(develop) yarn

➜ rmc git:(develop) cd ios

➜ ios git:(develop) pod install

    • TOOLS VIA INSTALLER:

Xcode (Mac) Android Studio Visual Studio Code Reactotron iTerm2 (Mac)

    • OTHERS:

Display hidden files on Finder (Mac) defaults write com.apple.finder AppleShowAllFiles YES; killall Finder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment