Skip to content

Instantly share code, notes, and snippets.

View thom8's full-sized avatar

Thom Toogood thom8

View GitHub Profile
image: integratedexperts/circleci2-builder
services:
- docker:dind
stages:
- validate
- build
- deploy
validate:
stage: validate
script:
@thom8
thom8 / ext-xdebug.ini.disabled
Created November 6, 2017 08:31
/usr/local/etc/php/7.1/conf.d/ext-xdebug.ini.disabled
[xdebug]
zend_extension="/usr/local/opt/php71-xdebug/xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.idekey=PHPSTORM
xdebug.remote_log="/tmp/xdebug.log"
@thom8
thom8 / Vagrantfile.local
Created September 12, 2017 03:58
Drupal VM - local port forwarding
Vagrant.configure('2') do |config|
config.vm.network 'forwarded_port', guest: 80, host: 8000, auto_correct: true
end

Keybase proof

I hereby claim:

  • I am thom8 on github.
  • I am thomtoogood (https://keybase.io/thomtoogood) on keybase.
  • I have a public key ASDmTVD6eejLcXLY4LpjMakNh6pEHbgtXtazCQovjLafgwo

To claim this, I am signing this object:

@thom8
thom8 / settings.php
Created March 20, 2017 11:19
Minimal settings.php
<?php
$settings['hash_salt'] = 'Ff2eKyjMCb3Qcp6StE1ZwkqgLRaAd2a_e5Gz2gF6v2wNkox7clvZ9A43TxsBsg_48IOYRNpbGQ';
$databases['default']['default'] = array (
'database' => 'drupal',
'username' => 'drupal',
'password' => 'drupal',
'prefix' => '',
'host' => 'localhost',
---
- name: Import db.
command: >
{{ drush_path }} sql-sync -y {{ drupal_import_source }} @self
chdir={{ beet_root }}
when: drupal_import_db is defined
become: no
- name: Run database updates.
command: >
@thom8
thom8 / config.yml
Last active March 3, 2016 02:27
Wordpress config
---
# Vagrant config.
vagrant_ip: 192.168.88.88
# Beetbox settings.
beet_project: wordpress
beet_domain: "{{ beet_project }}.local"
beet_site_name: "Beetbox"
# Wordpress settings.
@thom8
thom8 / Vagrantfile
Last active March 3, 2016 02:40
Wordpress Beetbox
# Add this Vagrantfile to an empty directory and run vagrant up -- http://beetbox.rtfd.org
require 'open-uri'
require 'fileutils'
cwd = File.dirname(File.expand_path(__FILE__))
lconfig = "#{cwd}/.beetbox/config.yml"
FileUtils::mkdir_p "#{cwd}/.beetbox"
open(lconfig, 'wb') << open("https://gist.githubusercontent.com/thom8/4e01f75e0be7b71f05b9/raw/config.yml").read unless File.exist?(lconfig)
eval(open("https://raw.githubusercontent.com/beetboxvm/beetbox/master/Vagrantfile") {|f| f.read })
@thom8
thom8 / dvm_remap.sh
Last active February 21, 2016 21:48
#!/bin/bash -e
DVM_CONFIG=${1:-'config.yml'}
if [ ! -f "$DVM_CONFIG" ]; then
echo "Drupal VM config file not found."
exit 1
else
# Remap Drupal VM config variables.
@thom8
thom8 / Vagrantfile
Created February 9, 2016 02:34
Beetbox /w ubuntu/trusty64 as the base.
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
Vagrant.require_version '>= 1.8.0'
cwd = File.dirname(File.expand_path(__FILE__))
config_dir = '.beetbox/'
project_config = "#{cwd}/#{config_dir}config.yml"