Skip to content

Instantly share code, notes, and snippets.

View JamesDullaghan's full-sized avatar
🎯
Focusing

James D JamesDullaghan

🎯
Focusing
View GitHub Profile
### Things that could be funded by publicly funding but aren't?
- Solar farms
- Some smaller hydroelectric dams to help power smaller cities or populated areas
- Some stretches of road or bridges and toll roads, etc.
- Sports Stadiums
- Parking structures
- Libraries
- Parks
- Museums
@JamesDullaghan
JamesDullaghan / docker_compose_vs_dockerfile.md
Created December 16, 2021 21:40
Docker Compose vs Dockerfile

Dockerfile is the main ingredient to be applied to all other docker-compose files allowing for multiple use.

Good for running multi-container docker applications.

@JamesDullaghan
JamesDullaghan / local_danger.md
Created December 13, 2021 01:17
Running Danger locally

Running danger locally pointing to a PR

bundle exec danger pr https://github.com/Realvestor/Realvestor/pull/684
@JamesDullaghan
JamesDullaghan / digitalocean.md
Created July 6, 2013 20:54
Deploy rails app to digitalocean with nginx, unicorn, capistrano & postgres

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh root@123.123.123.123

Add ssh fingerprint and enter password provided in email

@JamesDullaghan
JamesDullaghan / difference_between_etfs_and_index_funds.md
Last active June 19, 2021 22:45
Difference between mutual ETFs and index funds

Difference between Mutual Funds and ETFs

ETFs

ETFs are easier to trade and trade at a higher frequency

  • ETF's are securitized stuff like loans packaged or other debt packaged and sold usually with a rating
    • ETFs are baskets of assets traded like securities
  • ETFs are taxed at a different rate than mutual funds and index funds
@JamesDullaghan
JamesDullaghan / Bulletproof_foods.md
Created June 15, 2013 22:41
Dave Aspreys bulletproof diet food list

How many servings should I eat per day?

  • Fruit = 1-2 servings
  • Animal protein = 4 - 6 servings
  • Healthy fats = 5 - 9 servings
  • Healthy vegetables = 6 - 11 servings

How should I allocate my calories per day?

  • Healthy fats = 50%
@JamesDullaghan
JamesDullaghan / gist:acd63aefa4383875d5cbdbe965fdfee2
Created November 22, 2020 21:27 — forked from jvenator/gist:9672772a631c117da151
PDFtk Server Install Workaround for Mac OS X

Installing PDFtk Server edittion on your Mac

This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this homebrew-cask issue.
The following steps worked on Mac OS X 10.10.1 with a standard brew installation for the PDFtk Mac OS X server libary version 2.02.
All Terminal commands separated by a full line space. Some commands wrap into multiple lines.

Download and extract the Mac OS X server install pacakge

@JamesDullaghan
JamesDullaghan / color_classifier_spec.rb
Created May 18, 2020 21:19
Color Classifier spec example for Carrot
require 'rails_helper'
::LIGHT_COLORS = %i[
#800000
#ff0000
#800080
#ff00ff
#008000
#00ff00
#808000
@JamesDullaghan
JamesDullaghan / javascript_notes.mdown
Created May 24, 2013 19:00
Javascript notes from Simon Allardice's Lynda.com class/tutorial

#Javascript Notes

###Core Concepts -

  • HTMl is the markup language - CONTENT ON PAGES
  • CSS is the style sheet language - PRESENTATION ON PAGES
  • JAVASCRIPT is the programming language - BEHAVIOR ON PAGES

Javascript is a programming language. Often times javascript is referred to as a scripting language, but most programmers dismiss this and argue javascript is a programming language.

Post workout

  • Fructose
  • Dextrose
  • Salt
  • Caffiene

After Workouts

  • Salt depending on the amount of weight that is lost