Skip to content

Instantly share code, notes, and snippets.

View coreyti's full-sized avatar

Corey Innis coreyti

  • Mechanical Orchard
  • Portland OR
  • X @coreyti
View GitHub Profile
@coreyti
coreyti / squarespace-pictime.js
Last active November 19, 2021 23:37
A "code injection" helper to make pic-time work better when embedded in squarespace
const pictime = "https://juliameganphotography.pic-time.com";
const gallery = document.getElementById("pictime-gallery");
if(gallery) {
const iframe = document.createElement("iframe");
let url = new URL(window.location);
let path = url.searchParams.get("path") || "/art?headless=true";
window.addEventListener("message", (event) => {
switch (event.data.type) {
@coreyti
coreyti / Brewfile
Created September 11, 2018 19:51
gist.bootstrap (WIP)
# homebrew-bundle
# https://github.com/Homebrew/homebrew-bundle
# `brew bundle install --global`
tap "caskroom/cask"
tap "cloudfoundry/tap"
tap "git-duet/tap"
tap "homebrew/bundle"
tap "homebrew/core"
tap "homebrew/services"
tap "homebrew/versions"

Keybase proof

I hereby claim:

  • I am coreyti on github.
  • I am coreyti (https://keybase.io/coreyti) on keybase.
  • I have a public key whose fingerprint is 6631 2230 56B5 0611 F5F1 9186 8EAC 0009 70A4 26C8

To claim this, I am signing this object:

@coreyti
coreyti / dwatch
Created July 13, 2016 00:37
`watch` with diff/logging
#!/usr/bin/env bash
LAST_OUTPUT=""
echo > dwatch.log
while true ; do
result="$(monit summary)"
if [ "${result}" != "${LAST_OUTPUT}" ] ; then
@coreyti
coreyti / _render
Last active September 11, 2020 18:24
Command to render ERB+YAML
#!/usr/bin/env ruby
require 'optparse'
require 'ostruct'
require 'erb'
require 'json'
require 'yaml'
module GCP
class Context
@coreyti
coreyti / OpenSourceAuction.md
Last active August 29, 2015 14:10
#OpenSourceAuction - 2003 Audi A4 3.0 Quattro Sedan 4D

(CANCELLED) Auction - 2003 Audi A4 3.0 Quattro Sedan 4D

This didn't really take off, so nevermind.

0 - Introduction

In a similar spirit to the auction of my "Mostly-Dead" Macbook Pro, I am putting up for auction my fully-loaded 2003 Audi A4 3.0 Quattro Sedan 4D.

1 - About this Auction

@coreyti
coreyti / gist:a00194c727b968f1673f
Last active August 29, 2015 14:08
ShuHaRi in Music

Before we go any futher I'd like to show you all a game I made up. This game is called "ShuHaRi in Music" and it can be played with any [word-laden electronic music album]. You may be surprised. Now, if you have a pair of headphones, you better get 'em out and get 'em cranked up... 'cause they're really gonna help you.
-- via Hot Chip, adapted for 'ShuHaRi in Music'

The Idea (adapted from Martin Fowler's)

@coreyti
coreyti / gist:5f64cfa15deb3e91f436
Created November 6, 2014 16:47
ShuHaRi in Music

before we go any futher i'd like to show you all a game i made up. this game is called ["ShuHaRi in music"] and it can be played with any record, including this one. you may be surprised. now, if you have a pair of headphones, you better get 'em out and get 'em cranked up, 'cause they're really gonna help you. -- via Hot Chip

The Idea (adapted from Martin Fowler's)

@coreyti
coreyti / gist:cc24298fed17332485d1
Created November 6, 2014 16:47
ShuHaRi in Music

before we go any futher i'd like to show you all a game i made up. this game is called ["ShuHaRi in music"] and it can be played with any record, including this one. you may be surprised. now, if you have a pair of headphones, you better get 'em out and get 'em cranked up, 'cause they're really gonna help you. -- via Hot Chip

The Idea (adapted from Martin Fowler's)

@coreyti
coreyti / gist:542c0f44dcbb3762ec98
Created November 6, 2014 16:47
ShuHaRi in Music

before we go any futher i'd like to show you all a game i made up. this game is called ["ShuHaRi in music"] and it can be played with any record, including this one. you may be surprised. now, if you have a pair of headphones, you better get 'em out and get 'em cranked up, 'cause they're really gonna help you. -- via Hot Chip

The Idea (adapted from Martin Fowler's)