Skip to content

Instantly share code, notes, and snippets.

@segovia94
segovia94 / .lando.yml
Last active June 24, 2025 03:48
Lando config for running PHPUnit Browser and Javascript tests in Drupal with chromedriver
name: drupal
recipe: drupal11
config:
webroot: web
services:
appserver:
build:
- mkdir -p $LANDO_WEBROOT/sites/simpletest/browser_output
overrides:
environment:
@segovia94
segovia94 / App.vue
Last active April 19, 2020 01:41
hide email vue component
<template>
<div>
<HideEmail :prefix="name" :suffix="mysite.com"/>
</div>
</template>
<script>
import HideEmail from '~/components/HideEmail'
export default {
@segovia94
segovia94 / baseline.css
Created April 16, 2020 20:04
Some starter css that most sites need.
/* Better box sizing https://css-tricks.com/box-sizing/ */
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
@segovia94
segovia94 / .aliases
Last active June 10, 2020 05:59
windows terminal
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
# mv, rm, cp
@segovia94
segovia94 / services.local.yml
Created October 10, 2019 17:13 — forked from mrkmiller/services.local.yml
SiteFarm local development settings files
# Local development services.
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
parameters:
session.storage.options:
# Default ini options for sessions.
#
# Some distributions of Linux (most notably Debian) ship their PHP
@segovia94
segovia94 / bitbucket-pipelines.yml
Created June 28, 2018 23:59
Bitbucket Pipelines Firebase deploy recipe (used for project built with Nuxt.js)
image: node:8.9.0
pipelines:
branches:
master:
- step:
name: Build and test
caches:
- node
script:
@segovia94
segovia94 / bitbucket-pipelines.yml
Created June 28, 2018 23:50
Bitbucket Pipelines Cypress e2e testing recipe (used to test project built with Nuxt.js)
# Use the official cypress docker container.
image: cypress/base:8
pipelines:
default:
- step:
caches:
- node
- npm
- cypress
@segovia94
segovia94 / bitbucket-pipelines.yml
Created June 28, 2018 23:46
Bitbucket Pipelines git-ftp recipe
# Push code change to cheap host without git using https://git-ftp.github.io/
image: smartapps/bitbucket-pipelines-php-mysql
pipelines:
branches:
master:
- step:
script:
- apt-get update
- apt-get -qq install git-ftp # Install git-ftp
@segovia94
segovia94 / azure-mailchimp-subscribe.js
Created March 9, 2018 21:39
Subscribe a person to a Mailchimp list using an Azure serverless Function App
/**
* Expected query parameters via GET or POST
*
* email: a valid email address
* firstName: the first name
* lastName: the persons last name
*
* Don't forget to replace the API key and List ID.
*/
// Add the https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-node
# The top-most paths override here.
PATH=/usr/local/bin:$PATH
PATH=$PATH:/Applications/MAMP/Library/bin
# Use MAMP php version
PATH=/Applications/MAMP/bin/php/php7.0.13/bin:$PATH
export PATH