Skip to content

Instantly share code, notes, and snippets.

Matt matthewpick

  • Kansas City, MO
View GitHub Profile

Running MySQL in a Docker container


Step 1

Clone the mysql dockerfile repo

git clone
cd mysql/5.7
matthewpick / extra_paycheck_calculation.rb
Last active Sep 8, 2017
Based on a bi-weekly pay cycle, determine which months you will receive an extra paycheck.
View extra_paycheck_calculation.rb
require 'active_support/time'
def paycheck_count(begin_date, years)
month_count = {}
end_date = begin_date + years.years
time_counter = begin_date
while time_counter < end_date do
key = "#{time_counter.year}.#{time_counter.month}"
View nginx.conf
worker_processes 1;
events {
worker_connections 1024;
http {
include mime.types;
default_type application/octet-stream;
You can’t perform that action at this time.