Skip to content

Instantly share code, notes, and snippets.

View scottgruber's full-sized avatar

Scott Gruber scottgruber

View GitHub Profile
@scottgruber
scottgruber / export-perch-blog-to-json
Last active December 5, 2023 13:20
Two scripts to export Perch blog posts to JSON and then import the JSON into a Perch Runway collection
<?php
//include('../perch/runtime.php');
$site_url = 'https://'.$_SERVER['HTTP_HOST'];
$items = perch_blog_custom([
'count' => 100,
'sort' => 'postDateTime',
'sort-order' => 'DESC',
'skip-template' => true,
]);
@scottgruber
scottgruber / links-screenshot.png
Last active September 27, 2023 22:39
Build nav links with Perch pagelist addon and repeater
@scottgruber
scottgruber / block_template.html
Last active July 27, 2023 14:32
Using perch:related in a block proof of concept.
<perch:block type="related_article_block" label="Related Articles">
<perch:template path="content/blocks/related_article_block.html" />
</perch:block>
@scottgruber
scottgruber / readme.md
Last active May 7, 2021 21:57 — forked from remy/batcharge.py
My zsh set up as of August 9, 2019

Setup zsh

Based on Remy Sharp's most excellent Working the Command Line

brew install zsh zsh-completions

Add oh-my-zsh

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

Make zsh default shell

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" class="svg tiger" data-name="tiger" viewBox="0 0 133.64 93.06">
<g class="ear-left">
<path class="ear-left-outer" d="M30.63,43.81s-23.1-18-9.72-36.26c0,0,15.91-22.75,40.08,10.74Z" fill="#ffc50a"></path>
<path class="ear-left-inner" d="M34.23,27.22S22.55,20.3,27.77,11.4c0,0,6.15-11.07,19.16,2.76Z"></path>
</g>
<g class="ear-right">
<path class="ear-right-outer" d="M103.32,43.81s23.09-18,9.71-36.26c0,0-15.91-22.75-40.07,10.74Z" fill="#ffc50a"></path>
<path class="ear-right-inner" d="M99.71,27.22s11.69-6.92,6.47-15.82c0,0-6.16-11.07-19.17,2.76Z"></path>
</g>
@scottgruber
scottgruber / bottle-recycling.geojson
Last active April 17, 2020 19:01
Deposit Refund Systems
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@charset "UTF-8";
.clear:after {
display: block;
visibility: hidden;
font-size: 0;
height: 0;
clear: both;
content: ".";
}
@scottgruber
scottgruber / .gitignore
Last active August 10, 2019 02:02 — forked from octocat/.gitignore
My global .gitignore configuration
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #