Skip to content

Instantly share code, notes, and snippets.

View marothstein's full-sized avatar

Matt Rothstein marothstein

View GitHub Profile

Ollie's Self-Hosted GitHub Actions Runner

Why self-hosted?

Ollie is an Electron macOS app that needs to be code-signed, built, and E2E tested on real Apple Silicon hardware for every PR. GitHub's hosted macOS runners are slow and expensive for this — a self-hosted runner on a local Mac gives us fast builds with native arm64 performance and access to the macOS keychain for code signing.

What runs where

Runner Workflow What it does
plantbased, fitmom, essentialoils, plantlover, plantsgram, plantspo, plantsofinstagram, greenyourfeed, indoorjungle, plantaddict, plantparenthood, lift, motherhoodunplugged, momlife, momsofinstagram, momlifebelike, crossfitmoms, wellnessmama, wellnesstips, naturalremedies, hellofromtheoilside, healthylifestyle, healthykids, crunchymama, lavender, thieves, stressfree, healthtips, EOHacks, toxinfree, chemicalfree, workingmoms, essentialoilsrock, toxinfreeliving
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@marothstein
marothstein / test.txt
Created July 1, 2015 22:17
a test gist
this is a test
@marothstein
marothstein / import_page.css
Created July 26, 2014 16:45
Import page CSS edits
.page-content {
overflow-x: hidden !important;
min-width: 920px;
}
@marothstein
marothstein / import_page.css
Created July 26, 2014 16:45
Import page CSS edits
.page-content {
overflow-x: hidden !important;
min-width: 920px;
}
@marothstein
marothstein / AppDelegate.m
Last active August 29, 2015 14:01
login view controller situation - do I need a custom delegate?
// 1. App starts
// 2. If user is not logged in, rootViewController presents loginViewController (Code below)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
// Now check for authentication
[self checkIfLoggedIn];
...
return YES;
}
@marothstein
marothstein / engine.rb
Created January 6, 2014 22:14
SlidePay Gateway
module SpreeGateway
class Engine < Rails::Engine
engine_name 'spree_gateway'
config.autoload_paths += %W(#{config.root}/lib)
# use rspec for tests
config.generators do |g|
g.test_framework :rspec
end
@marothstein
marothstein / login_screen.html
Created October 8, 2013 21:19
Login screen for the Cube web cct
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="VirtualTerminal.Login" %>
<!DOCTYPE html>
<html>
<head runat="server">
<link rel="stylesheet" type="text/css" href="https://raw.github.com/twbs/bootstrap/master/dist/css/bootstrap.min.css"/>
<style type="text/css">
article {
font-family: helvetica;
@marothstein
marothstein / .git-prompt.sh
Created October 7, 2013 17:25
Save to your home directory with the name '.git-prompt.sh'
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see the current branch in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).