Skip to content

Instantly share code, notes, and snippets.

View galbus's full-sized avatar

Stuart McAlpine galbus

View GitHub Profile
@galbus
galbus / gutenberg-embeds.html
Created August 30, 2024 17:20 — forked from coreymcollins/gutenberg-embeds.html
Using every embed from Gutenberg
<!-- wp:core-embed/youtube {"url":"https://www.youtube.com/watch?v=2WGr69m-RB8","type":"video","providerNameSlug":"youtube","className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://www.youtube.com/watch?v=2WGr69m-RB8
</div></figure>
<!-- /wp:core-embed/youtube -->
<!-- wp:core-embed/wordpress {"url":"https://support.wistia.com/medias/h1z3uqsjal","type":"wp-embed","providerNameSlug":"wistia-inc","className":""} -->
<figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-wistia-inc"><div class="wp-block-embed__wrapper">
https://support.wistia.com/medias/h1z3uqsjal
</div></figure>
@galbus
galbus / macports-rvm-nvm.sh
Last active December 8, 2020 17:11
Install Macports, NVM & RVM on OSX Yosemite
#############################################
# Step-by step instructions for installing: #
# #
# - Macports #
# - RVM & Ruby #
# - NVM & Node #
# #
# DO NOT execute all steps at once #
# Do each one manually & check the output #
# #
@galbus
galbus / yo-angular-wp-api.sh
Last active August 29, 2015 14:09
Using Wordpress as an API with 'yo angular'
# Bower - Must
bower install angular-ui-router --save
bower install modernizr --save
bower install smartmenus --save
# Bower - Optional
# bower install ngInfiniteScroll --save
# bower install Shuffle --save
# bower install slick-carousel --save
@galbus
galbus / Gruntfile-buildcontrol-snippet.js
Last active August 29, 2015 14:05
Grunt file snippet for buildcontrol: automated deployment using Git
/**
* The following buildcontrol config will commit the built
* files into a Git repo on our staging/production server.
*
* The repos have a post-update hook that updates the code
* in the document root.
*/
module.exports = function (grunt) {
@galbus
galbus / jenkins-vagrant.sh
Last active December 11, 2015 17:59
Jenkins & Vagrant - Execute on a fresh Amazon EC2 Ubuntu 12.0.4 LTS 32bit
# Execute on a fresh Amazon EC2 Ubuntu 12.0.4 LTS 32bit
# jenkins
sudo wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
# php, pear (& phpunit)
sudo apt-get install php5 php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl