Skip to content

Instantly share code, notes, and snippets.

View kmcphillips's full-sized avatar

Kevin McPhillips kmcphillips

View GitHub Profile
@kmcphillips
kmcphillips / ci.yml
Created February 23, 2024 02:17
Working MySQL 8 with Trilogy and Rails in Github Actions CI
name: CI
on: [ push, pull_request ]
jobs:
rspec:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
@kmcphillips
kmcphillips / .gitignore
Last active September 1, 2020 15:01
Poll for Tesla chargers in stock and emails when found
/poller.log
/.env
/last_run
@kmcphillips
kmcphillips / group1.csv
Last active April 20, 2018 15:00
PP - Secret Santa
Chris chris@example.com
Felix felix@example.net
Elizabeth lizzy1994@example.com
André andre@example.fr
Milo milo.milo@example.com
Olivia olive99@example.net
Hugo hugo124@example.net
Amit amit.123@example.com
Ludwig ludwig@example.net
Raoul raoul@example.com
@kmcphillips
kmcphillips / pp_rover.md
Last active March 26, 2018 13:52
PP - Robot rover / turtle problem description

Robot rover / turtle problem

Description

Create a command line that prompts for commands and moves a rover around a 2D plane.

The robot should point in a direction, turn to face different directions, and take a step in the direcion it is facing.

Demo

@kmcphillips
kmcphillips / dutch.json
Last active July 23, 2017 16:47
Duolingo Dutch vocabulary
{"Basics 1":["man","vrouw","ik","ben","een","jongen","en","is","ze","kind","zij","hij","meisje","eet","drink","de","appel","melk","drinkt","sap","brood","water","het","of","je","jij","bent"],"Basics 2":["eten","wij","boterham","drinken","rijst","we","jullie","vrouwen","lezen","de","mannen","meisjes","zij","krant","jongens","menu","dat","het","zijn","hebben","heb","heeft","hebt","boek","leest","lees","spreekt","spreken","kinderen"],"Common Phrases":["hallo","bedankt","doei","dag","tot","ziens","hoi","goedemorgen","goedendag","goedenavond","welterusten","ja","dank","nee","wel","misschien","alsjeblieft","niet","sorry","het","spijt","me","oké","pardon","goed","hoe","gaat","spreek","geen","engels","spreekt","nederlands"],"Food: Basic":["vis","sinaasappel","wijn","koffie","ei","kip","bord","suiker","middageten","ontbijt","kaas","fruit","pasta","lunch","bier","rundvlees","soep","tomaat","aardbei","citroen","limoen","avondeten","vlees","maaltijd","thee","varkensvlees","vegetariër","eten","groente","peper","olie","dor
@kmcphillips
kmcphillips / README.md
Last active May 26, 2020 12:43
How To Run multiple Rails/Rack Apps with MySQL on Nginx and Unicorn with Let's Encrypt SSL on Ubuntu 16.04 LTS

How To Run multiple Rails/Rack Apps with MySQL on Nginx and unicorn with Let's Encrypt SSL on Ubuntu 16.04 LTS

Introduction

The goal of this tutorial is to fully configure a fresh Ubuntu 16.04 drop to run multiple Rack compliant (Rails/Sinatra) Ruby app applications. Each of the long list of tools used has its own detailed documentation, but this guide focuses on how to link them all together into a production-ready server.

There are in almost every case several tools that will fulfill a similar purpose, but in this guide we will use:

@kmcphillips
kmcphillips / reclaim_win10.ps1
Last active January 8, 2017 19:44 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions.
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# Adapted by Kevin McPhillips 2017-01-07
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# NOTE: READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT. ADJUST COMMENTS AS APPROPRIATE.
# This script will reboot your machine when completed.
@kmcphillips
kmcphillips / Player.log
Created January 3, 2017 04:50
Stephen's Sausage Roll crash
ERROR: ld.so: object '/home/MY_USER/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
STENCIL_SIZE=8
GLX_SAMPLES_ARB=0
GLX_SAMPLE_BUFFERS_ARB=0
GLX_STEREO=0
GLX_CONFIG_CAVEAT=NONE
Desktop is 1920 x 1080 @ 60 Hz
Initialize engine version: 5.3.4f1 (fdbb5133b820)
Forcing GfxDevice: OpenGL
@kmcphillips
kmcphillips / tip_of_the_day.rb
Created April 14, 2016 14:28
I'm already pro thanks
module TipOfTheDay
TIP_OF_THE_DAY_FILE = RAILS_ROOT + 'db/tip_of_the_day.txt'
WALRUS_FACT_OF_THE_DAY_FILE = RAILS_ROOT + 'db/walrus_fact_of_the_day.txt'
def self.run
return if Bootstrap.debug?
return if ENV["IM_ALRDY_PR0_AT_WALRUSES_THX"] && ENV["IM_ALREADY_PRO_THANKS"]
if ENV["IM_ALREADY_PRO_THANKS"]
read_pro_tip(WALRUS_FACT_OF_THE_DAY_FILE, "WalrusFact")
@kmcphillips
kmcphillips / keybase.md
Created September 18, 2014 12:39
Keybase.io

Keybase proof

I hereby claim:

  • I am kmcphillips on github.
  • I am kmcphillips (https://keybase.io/kmcphillips) on keybase.
  • I have a public key whose fingerprint is FA50 A01E 100E F1A4 A66B C09D 3B6E BB01 886B 72AC

To claim this, I am signing this object: