- Install Terminus:
composer global require pantheon-systems/terminus
. - Head to your Pantheon dashboard, go to your Account and click on Machine Tokens.
- Create a new token and use it auth with Pantheon:
terminus auth:login --machine-token=MACHINE-TOKEN
- Create a new site on Pantheon using terminus:
terminus site:create name-of-site "Name of Site" 35b0e365-a191-4c70-adbe-9d02d01343f3.
35b0e365-a191-4c70-adbe-9d02d01343f3
is the uuid of the Drops 8 Composer upstream. You can see a list of upstream by runningterminus upstream:list
- Once the site is created, you can head to http://dev-name-of-site.pantheonsite.io and continue with setup.
- Cloning your site on your local should give you a composer-based template.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Up to date version can always be found at https://gist.github.com/cweagans/4e879a72985905e145df | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.synced_folder ".", "/srv", type: "nfs" | |
config.vm.network "private_network", ip: "192.168.205.142" | |
config.vm.network "forwarded_port", guest: 80, host: 8085 | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1024"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Include Gulp | |
var gulp = require('gulp'), | |
// Include Plug-ins | |
changed = require('gulp-changed'), | |
concat = require('gulp-concat'), | |
globbing = require('gulp-css-globbing'), | |
imagemin = require('gulp-imagemin'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
# core | |
brew install coreutils | |
# key commands | |
brew install binutils | |
brew install diffutils | |
brew install ed --default-names | |
brew install findutils --with-default-names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Filters an array of objects using custom predicates. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria | |
* @return {Array} | |
*/ | |
function filterArray(array, filters) { | |
const filterKeys = Object.keys(filters); | |
return array.filter(item => { |
OlderNewer