Skip to content

Instantly share code, notes, and snippets.

View dphilla's full-sized avatar
🦀
Focusing

Dan Phillips dphilla

🦀
Focusing
View GitHub Profile
@dphilla
dphilla / puma.rb
Last active January 15, 2021 00:24
basic puma.rb
# basic mina puma.rb
# Change to match your CPU core count
workers 1 # note this will be the number of app instances running on the machine!
# Min and Max threads per worker
threads 0, 5
app_dir = File.expand_path("../..", __FILE__)
shared_dir = "#{app_dir}"
@dphilla
dphilla / ngnix_server
Last active December 18, 2020 19:29
basic_ngnix_server
# from mina production
# Ubuntu 20.04
# /etc/nginx/sites-available/mina symlinked to /etc/nginx/sites-enabled/mina
# todo: more needed here for redirects, static pages, etc**
upstream mina {
server unix:///home/mina/app/shared/tmp/sockets/puma.sock;
}
server {
@dphilla
dphilla / long_and_helpful_git_commands.md
Last active June 18, 2018 18:32
Long and Helpful Git Commands

git merge-tree "git merge-base branch_1 branch_2" branch_1 branch_2 | grep -A3 "changed in both"

git log --oneline --decorate --all --graph for fun

<h1> hi </h1>
@dphilla
dphilla / my_file.md
Created April 23, 2018 17:21
a new gist

header

something

bold

strike

@dphilla
dphilla / .bashrc
Created February 16, 2018 21:39
Ubuntu .bashrc
# for examples
eval "$(rbenv init -)"
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@dphilla
dphilla / first_oss_contribution.md
Last active January 10, 2018 14:26
A simple guide to contributing to you first OSS project

Contributing to your first Open Source Project

"Open Source" is a term one hears early and often when learning to program. The term is usually couched by other terms like "Libraries" or "Tools." It's amazing just how much software is open source--hint: it's a lot. Even more mind-boggling, then, is thinking about the community of people who create and maintain these projects.

In my last week as a student at the Turing School of Software and Design, we were asked to find and contribute to an Open Source Software (OSS) project. Here, I'm going to briefly describe how you can contribute to your first Open-Source project.

Finding a Repository

Finding the right repository can be difficult, especially as a beginner. Talk to people within you professional/educational network for ideas, and look at people that you follow on Github for ideas. Further, resources like the "explore" section on Github and Libraries.io can be helpful when finding a new repo to work with. Look for projects t

@dphilla
dphilla / tech_outline_skeleton.md
Last active February 25, 2018 20:42
Technical Outline

Outline Components

Introduction

Background of technology or service