Skip to content

Instantly share code, notes, and snippets.

Randy Fay rfay

Block or report user

Report or block rfay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:fbed09e09382e8cad4a2a79acd8d3463
rfay@rfay-mbp-2017:~/workspace$ mkdir my-drupal8-site
rfay@rfay-mbp-2017:~/workspace$ cd my-drupal8-site/
rfay@rfay-mbp-2017:~/workspace/my-drupal8-site$ ddev config --project-type php
Creating a new ddev project config in the current directory (/Users/rfay/workspace/my-drupal8-site)
Once completed, your configuration will be written to /Users/rfay/workspace/my-drupal8-site/.ddev/config.yaml
Found a php codebase at /Users/rfay/workspace/my-drupal8-site
Project type has no settings paths configured, so not creating settings file.
Configuration complete. You may now run 'ddev start'.
rfay@rfay-mbp-2017:~/workspace/my-drupal8-site$ ddev composer create drupal-composer/drupal-project:8.x-dev --prefer-dist
rfay / # mingw-w64 - 2019-12-26_22-01-03.txt
Created Dec 27, 2019
mingw-w64 on Ubuntu 18.04.2 LTS - Homebrew build logs
View # mingw-w64 - 2019-12-26_22-01-03.txt
Homebrew build logs for mingw-w64 on Ubuntu 18.04.2 LTS
Build date: 2019-12-26 22:01:03
rfay / gist:8cd633f3d0b7722da3bea044c69085d1
Created Sep 17, 2019
Build php 5.3 on recent Ubuntu
View gist:8cd633f3d0b7722da3bea044c69085d1
# From by See
apt-get install -y libcurl4 curl libcurl4-openssl-dev libc-client2007e libc-client2007e-dev libssl1.1 libssl-dev \
libsnmp-dev comerr-dev krb5-multidev libgssrpc4 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9 libpam0g-dev libpci-dev \
libsensors4-dev libudev-dev libwrap0-dev zlib1g-dev
#php5.3 libraries/tools for compile
apt-get install -y build-essential autoconf automake autotools-dev re2c cmake cmake-data libjsoncpp1 librhash0
apt-get install -y apache2-dev libbz2-dev libssl1.0.0 bzip2-doc libapr1-dev libaprutil1-dev libexpat1-dev \
libldap2-dev libsctp-dev libsctp1 uuid-dev
apt-get install -y libedit-dev libenchant-dev libfreetype6 libfreetype6-dev enchant hunspell-en-us libbsd-dev \
rfay / .bash_sshagent
Last active Aug 22, 2019
Starting ssh-agent just once (like on windows) wherever something isn't starting it for you
View .bash_sshagent
## Auto launch of ssh-agent from
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }
agent_start () {
rfay / disable_xdebug
Last active Aug 7, 2019
ddev enable_xdebug and disable_xdebug commands - put these in .ddev/commands/web
View disable_xdebug
## Description: Disable xdebug
## Usage: disable_xdebug
## Example: ddev disable_xdebug
export PATH=$PATH:/usr/sbin
View gist:ba875e761ae41d86c433fbe4f4259d1c
$ sudo apt-get install rkt
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 72.5 MB of archives.
After this operation, 85.1 MB of additional disk space will be used.
Err:1 ./ rkt 1.6.0-0
View check_in_path
package main
import (
func main() {
matches, _ := checkForFileInSubdirs(".", "junk.txt")
fmt.Printf("Matches for 'junk.txt: %v\n", matches)
View Gopkg.lock
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
branch = "master"
digest = "1:6da51e5ec493ad2b44cb04129e2d0a068c8fb9bd6cb5739d199573558696bb94"
name = ""
packages = [
View gist:f6b576d4aa0536e637604647652804ae
composer install
Loading composer repositories with package information
The "" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)
rfay /
Created Mar 18, 2018
Experimental setup of Drupal 8 testing for ddev
# This script runs inside the ddev web container and sets up Drupal 8 testing.
# It assumes a regular Drupal 8 checkout, with the docroot in the project root.
# It can be added to the config.yaml as a step to automatically happen on start
# - Run this manually with "ddev exec ./"
# - Run this in the container (after "ddev ssh) by just running "./"
# - Run it automatically run on start by adding it to the project's config.yaml:
You can’t perform that action at this time.