Skip to content

Instantly share code, notes, and snippets.

View mcnamee's full-sized avatar

▛▚▞▜ ▞▚ ▜▛ ▜▛ mcnamee

View GitHub Profile
@mcnamee
mcnamee / install-mage2.sh
Created April 20, 2018 00:46
Install Magento2, our way
#
#
# Installs Magento2 "the Pivotal Way"
#
# Simply run the following from your CLI:
# `bash <(curl -s <URL TO THE 'RAW' VERSION OF THIS GIST>)`
#
# You get Magento2 installed and the Pivotal Theme
#
# Prereq's: Composer, WP-CLI, Git, Unix
@mcnamee
mcnamee / prefetch-url.js
Created March 21, 2017 01:36
Prefetch URL on Hover
(function($) {
// Which links should we prefetch?
var $linkElements = $(".menu-item a");
$linkElements.on("hover", function() {
var link = $(this).attr("href"),
prerenderLink = $("#prerenderLink");
if (prerenderLink.length) {
if (prerenderLink.attr("href") === link) return;
prerenderLink.attr("href", link);
@mcnamee
mcnamee / bitbucket-pipelines.yml
Last active December 14, 2023 03:57
Bitbucket Pipelines - Deploy via FTP to shared hosting
# Installation ---
# 1. In Bitbucket, add FTP_USERNAME, FTP_PASSWORD and FTP_HOST as environment variables.
# 2. Commit this file (bitbucket-pipelines.yml) to your repo (in the repo root dir)
# 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will
# push everything and initialize GitFTP)
#
# Usage ---
# - On each commit to master branch, it'll push all files to the $FTP_HOST
# - You also have the option to 'init' (see 'Installation' above) - pushes everything and initialises
# - Finally you can also 'deploy-all' (from Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:deploy-all)