Skip to content

Instantly share code, notes, and snippets.

Matt matthewpick

  • Kansas City, MO
Block or report user

Report or block matthewpick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mysql_docker_setup.md

Running MySQL in a Docker container

Docker

Step 1

Clone the mysql dockerfile repo

git clone https://github.com/docker-library/mysql.git
cd mysql/5.7
@matthewpick
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.