Skip to content

Instantly share code, notes, and snippets.

@tdyer
tdyer / install_mariadb.txt
Last active June 2, 2017 16:04
Notes on installing mariadb for CRMBliss
####################################################################
# Install mariadb, this will install the latest version.
# 10.2.6 on 6/1/2017
####################################################################
# See if mariadb is installed by homebrew.
######################
# See if mariadb is already installed
$ brew list
@tdyer
tdyer / bloc_sw_principles.md
Last active April 5, 2017 01:40
Software Engineering Principles

Question:

I finished Rails and I feel like I understand it pretty well, but I don't understand ActiveRecord or ORMs in general. How does calling save on my model get turned into data in the database?

Answer:

Well, calling the save method on a model, ActiveRecord#save, it will update a table row in this Rails app DB.

For example, when updating the duration of the Jaws movie model.

@tdyer
tdyer / ruby_modules.txt
Created June 16, 2014 00:27
Ruby Modules as Mixins and Namespaces.
Modules as Mixins
http://definingterms.com/2013/03/23/pitfalls-of-ruby-mixins/
http://www.rubyfleebie.com/an-introduction-to-modules-part-1/
Modules as Namespaces
http://blog.rubybestpractices.com/posts/gregory/037-issue-8-uses-for-modules.html
@tdyer
tdyer / ruby_exceptions.txt
Created June 15, 2014 10:02
Ruby Exceptions
Reading/Viewing for Ruby Exceptions.
http://www.skorks.com/2009/09/ruby-exceptions-and-exception-handling/
http://blog.rubybestpractices.com/posts/rklemme/003-The_Universe_between_begin_and_end.html
http://www.confreaks.com/videos/658-rubyconf2011-exceptional-ruby
@tdyer
tdyer / git_github.md
Created January 1, 2014 05:39
Git and Github notes.

GIT:

What is Git??

GIT is a version control system. * saves history of changes *revert to prior versions * merge work from multiple collaborators

Git origin story:

@tdyer
tdyer / linux_bash.md
Created January 1, 2014 05:35
Linux and Bash notes.

BASH

(aka Shell, Terminal, Command Line Prompt, Bash Prompt, Bash Shell):

What are the bash commands?

All commands are Unix programs ex: pwd is a program (whose definition lives in a bin directory) see also: Unix philosophy (http://en.wikipedia.org/wiki/Unix_philosophy)

Unix file structure is like a tree.