git reset HEAD^ --hard # Goes back one commit
git push origin -f # Does a hard push to remote
Source: https://gist.github.com/gunjanpatel/18f9e4d1eb609597c50c2118e416e6a6
# Generating rails app for graphql server | |
rails new graphql-tutorial --skip-action-mailer --skip-action-mailbox --skip-action-text --skip-active-storage --skip-action-cable --skip-javascript --skip-system-test --skip-webpack-install | |
# Graphql generate object | |
rails g graphql:object LinkType id:ID! url:String! description:String! | |
# Graphql eager loading |
1. Install nvm | |
https://github.com/nvm-sh/nvm | |
2. Install long term support node | |
nvm install --lts | |
3. install yarn with no dependencies |
ssh-keygen -t rsa | |
^ will create a key with final comment as variation of username | |
cat ~/.ssh/id_rsa.pub | |
# Setting up and activating a venv | |
python3 -m venv venv | |
source venv/bin/activate | |
deactivate | |
# Using notebooks (inside the venv) | |
pip install ipykernel | |
ipython kernel install --user --name=projectname |
git reset HEAD^ --hard # Goes back one commit
git push origin -f # Does a hard push to remote
Source: https://gist.github.com/gunjanpatel/18f9e4d1eb609597c50c2118e416e6a6
If the latest ruby version doesn't show then update rbenv