Skip to content

Instantly share code, notes, and snippets.

View alexcalaca's full-sized avatar

Alexandre Calaça alexcalaca

View GitHub Profile
@alexcalaca
alexcalaca / Markdown-cheat sheet-my notes.md
Last active May 16, 2018 22:56
Markdown-cheat sheet-my notes

This is block

\ It creates a line break

''' Test '''

Header

@alexcalaca
alexcalaca / Github-cheat sheet-my notes
Created May 8, 2018 01:34
Github-cheat sheet-my notes
Remove files from the repository based on your .gitignore without deleting them from the local file system
git rm --cached `git ls-files -i -X .gitignore`
@alexcalaca
alexcalaca / How to set up Ruby on Rails 5 + PostgreSQL database on Cloud9.md
Last active January 13, 2022 18:48
How to set up Ruby on Rails 5 + PostgreSQL database on Cloud9

My profile: https://about.me/alexandrecalaca

1. Check your Rails version

rails -v
  1. Open the Gemfile and replace the line "gem 'sqlite3" with gem 'pg', '~> 0.21'
gem 'pg', '~> 0.21'