Skip to content

Instantly share code, notes, and snippets.

View Dav1s-Ops's full-sized avatar
🛹
Learning C# & .NET!

Davis Weimer Dav1s-Ops

🛹
Learning C# & .NET!
View GitHub Profile
@Dav1s-Ops
Dav1s-Ops / b3_rails_cheatsheet.md
Last active September 3, 2023 16:25 — forked from cjsim89/b3_rails_cheatsheet.md
B3 Rails Cheatsheet

B3 Rails Cheatsheet

Rails Encrypted Credentials

First step, run this command:

EDITOR="code --wait" rails credentials:edit

When we run this command, a new key is created in config/master.key as well as a credentials temp file thats opened in your text editor (in this case VSCode denoted by EDITOR="code --wait").

@Dav1s-Ops
Dav1s-Ops / intermediate_sql.md
Last active August 21, 2023 14:38 — forked from case-eee/intermediate_sql.md
Intermediate SQL

Intermediate SQL Workshop

  • Run psql
  • You may need to run CREATE DATABASE intermediate_sql;
  • To exit this shell, you can run CTRL d

Create tables

Let's create some tables in the database.

Calendaring - CFU

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and edit your gist.
  4. As you are working, you can use the Preview button to check your markdown formatting.

Exercises