Skip to content

Instantly share code, notes, and snippets.

View stovak's full-sized avatar
😀

Tom Stovall stovak

😀
View GitHub Profile

CircleCI:

version: 2.1

jobs:
  build:
    docker:
      - image: circleci/node:10
CircleCI Example:
```
version: 2.1
jobs:
build:
docker:
- image: circleci/node:10
environment:
name: Terminus
on:
push:
pull_request:
repository_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
# Checkout in separate job because docker image is alpine based and checkout action doesn't work.
checkout:
@stovak
stovak / Build Tools Upgrade.md
Last active May 11, 2021 21:11
Build Tools Upgrade.md

Build Tools Workflow

This tutorial is for you if you meet the following criterion:

  1. You have an external repository outside of pantheon that manages your site's code.

  2. You use a build service like Github Actions, Circle CI or Travis to "build" the site.

  3. Those build artifacts are pushed to your pantheon repo.

#!/usr/bin/env bash
echo "** If terminus is set up incorrectly on this machine, the database download will fail. **"
export BACKUP_FILE_NAME=backup.sql.gz
export DATABASE_NAME=drupal8
export PANTHEON_SITE_NAME=${milken-institute}
<?php
/**
* @file
* Drupal\knowledge_center\Plugin\rest\resource\Categories__1_0
*/
namespace Drupal\knowledge_center\Plugin\rest\resource;
use Drupal\knowledge_center\utility\RMRestResponse;
use Drupal\openapi\OpenApiGenerator\RestInspectionTrait;
@stovak
stovak / react.html
Last active December 4, 2017 18:47
<!DOCTYPE html>
<html>
<!--
|
| This file will allow you to create a .jsx component without actually setting up a dev environment.
|
|
-->
<head lang="en">
<meta charset="UTF-8">
#!/bin/sh
cd ~/Sites
composer create-project drupal-composer/drupal-project:8.x-dev legacy8 --stability dev --no-interaction
cd legacy8
composer require drupal/address
composer require drupal/cdn
composer require drupal/crop
composer require drupal/diff
function mantra_title_and_description() {
$mantra_options = mantra_get_theme_options();
foreach ($mantra_options as $key => $value) { ${"$key"} = $value; }
// Header styling and image loading
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
global $post;
if (get_header_image() != '') { $himgsrc = get_header_image(); }
From 59e8b8ae778d1511af39caa677bebf81cfbe45ca Mon Sep 17 00:00:00 2001
From: Tom Stovall <[email protected]>
Date: Sat, 24 Oct 2015 16:51:31 -0700
Subject: [PATCH] 2488180-mysql-utf8mb4-support-reroll-for-7.41
---
includes/database/mysql/database.inc | 9 +++++----
includes/database/mysql/schema.inc | 11 ++++++++++-
sites/default/default.settings.php | 15 +++++++++++++++
3 files changed, 30 insertions(+), 5 deletions(-)