Skip to content

Instantly share code, notes, and snippets.

View vonnenaut's full-sized avatar

Dan vonnenaut

View GitHub Profile
@vonnenaut
vonnenaut / docker.md
Last active November 8, 2022 18:06
Docker
@vonnenaut
vonnenaut / heroku.md
Last active May 20, 2021 06:05
Heroku Deployment

Heroku

Install (or uninstall and reinstall) CLI on Ubuntu

sudo snap remove heroku now
sudo snap install --classic heroku

heroku login
@vonnenaut
vonnenaut / ruby_rails_notes.md
Last active December 15, 2020 07:36
Ruby on Rails Notes

Ruby on Rails

Common Issues and Resolutions

Webpacker Issues

If you get the following error:

1. You want to set webpacker.yml value of compile to true for your environment unless you are using the webpack -w or the webpack-dev-server.

2. webpack has not yet re-run to reflect updates.
@vonnenaut
vonnenaut / git.md
Last active March 20, 2022 13:40
Git Notes
@vonnenaut
vonnenaut / problem-solving_notes.md
Last active June 19, 2020 03:19
General Approach to Problem-Solving

Small Code Challenge Problems

  • 20 - 45 minutes
  • typical solutions: 10-40 LOC
  • used extensively in interviews for a reason
    • mastery on a language
    • logic / reasoning
    • communications
  • not a skill that you "acquire and file away", but needs a lot of practice
@vonnenaut
vonnenaut / vim.md
Last active August 5, 2020 15:47
VIM Notes

VIM

Modes and Mode Commands

Cmd Description
: command mode
<esc> (press escape to) exit command mode
:w write
:w [filename] writes a new file named [filename]
:q quit
@vonnenaut
vonnenaut / rack.md
Last active April 5, 2020 10:20
Rack -- A Ruby Framework-compatible Library -- Notes

Rack

Rack is a generic interface to help application developers connect to web servers, so it works with WEBrick (comes with Ruby installation) and many other servers. Rack applications are for simple situations.

Steps for Creating a Rackable Ruby Application

  1. Create a Gemfile.

    # Gemfile
    
    

source "https://rubygems.org"

@vonnenaut
vonnenaut / erb_notes.md
Last active April 23, 2020 07:20
ERB (Embedded Ruby in HTML)

ERB

ERB allows us to embed Ruby directly into HTML. The ERB library can process a special syntax that mixes Ruby into HTML and produces a final 100% HTML string.

It works in conjunction, here, with separate view template files ending in .erb.

To use ERB:

  • require 'erb'