Skip to content

Instantly share code, notes, and snippets.

@alunward
alunward / gh-deploy.php
Last active March 16, 2018 08:22
Webhook for GitHub
<?php
$repo_dir = '/srv/users/serverpilot/apps/<REPO-NAME>/repo';
$web_root_dir = '/srv/users/serverpilot/apps/<REPO-NAME>/public';
// Full path to git binary is required if git is not in your PHP user's path. Otherwise just use 'git'.
$git_bin_path = 'git';
$update = false;
// Parse data from Bitbucket hook payload
@alunward
alunward / jekyll-collections-prev-next.html
Created February 12, 2017 17:18 — forked from budparr/jekyll-collections-prev-next.html
Previous Next Links for Jekyll Collections
{% capture the_collection %}{{page.collection}}{% endcapture %}
{% if page.collection %}
{% assign document = site[the_collection] %}
{% endif %}
<h1>TITLE: {{ page.title }}</h1>
{% for links in document %}
{% if links.title == page.title %}
{% unless forloop.first %}
{% assign prevurl = prev.url %}
{% endunless %}
@alunward
alunward / _layout-nav.scss
Created December 1, 2016 10:36
Drop down menu - two column - in Jekyll
/* set up two columns for submenu */
ul.submenu {
@include outer-container;
@include media ($tablet) {
.column {
@include span-columns(6);
}
}
}