Skip to content

Instantly share code, notes, and snippets.


Jay Gilmore jaygilmore

View GitHub Profile
jaygilmore / Rsync.MD
Created May 9, 2018
Rsync from source into Cloud from another server
View Rsync.MD

Logged into Cloud and Rsync from another location into Cloud. Note the Port command if needed.

rsync -azvvP -e  user@ /www --filter=". filter.txt"

With the SSH command for the port if needed.

rsync -azvvP -e 'ssh -p 2801' user@ /www --filter=". filter.txt"
jaygilmore / recalculateURIs.php
Created Oct 25, 2017 — forked from opengeek/recalculateURIs.php
Script to recalculate all unfrozen URI values for MODX Resources in 2.1.x+
View recalculateURIs.php
include 'config.core.php';
include MODX_CORE_PATH . 'model/modx/modx.class.php';
$modx = new modX();
$modx->setLogTarget(XPDO_CLI_MODE ? 'ECHO' : 'HTML');
jaygilmore / text.class.php
Last active Nov 14, 2016 — forked from pepebe/new_gist_file.php
Fix fatal error "Fatal Error: Cannot redeclare class modTemplateVarInputRenderText..."
View text.class.php
Quick fix for this problem until I have the time to look for the cause.
"Fatal Error: Cannot redeclare class modTemplateVarInputRenderText... core/model/modx/processors/element/tv/renders/mgr/input/text.class.php onl line 10"
* @package modx
jaygilmore /
Last active Sep 26, 2019
A way to get a list of the committers from the last release to the most recent with the number of commits.

Git Contributors List Method

Replace the versions with the previous first and current second after the ....

git shortlog -s -n v2.7.1-pl...v2.7.7-pl
jaygilmore /
Last active Jun 9, 2016
Creating a favicon.ico from a set of hand adjusted PNGs on Mac

Creating Favicons

I didn't want to use scaled down images without adjusting the lower resolution images to be crisper and cleaner. Scaled images often yield crappy results. See this article by John Hicks for more info.


I am using png2ico installed via Homebrew.

Pre Conversion Optimization

Prior to running the conversion I ran the images through ImageOptim (there may be a better way to do this).

The Conversion


Tiny Content Framework

About the Project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.


There’s more to come, and I’d love to hear what you think. Give me feedback on Twitter (@nicoleslaw) or by email ( We all benefit from sharing our ideas and creating standards. Onward.


Keybase proof

I hereby claim:

  • I am jaygilmore on github.
  • I am jaygilmore ( on keybase.
  • I have a public key whose fingerprint is 1CE9 4800 3A54 E380 F343 652B 98E5 58F5 31CE 298F

To claim this, I am signing this object:

jaygilmore / sectionNav.html
Created May 13, 2014
Nested getResources Calls from RTFM
View sectionNav.html
[[getResources@section-nav? &parents=`[[+id]]` &level=`[[+level:add]]` &toPlaceholder=`childNav`]]
[[+childNav:notempty=`<i class="icon-caret-right"></i>`]]
<a href="[[~[[+id]]]]">[[+menutitle:default=`[[+pagetitle]]`]]</a>
jaygilmore / randomChunkRevo.php
Last active Dec 10, 2015
A MODX Revolution Version of Sal Sodano's RandomChunk to randomly display Chunks. Ideally used with Jason Coward's getCache.
View randomChunkRevo.php
* RandomChunk
* Salvatore Sodano
* Revolution Version 2013, Jay Gilmore aka smashingred
* [[!RandomChunk? &chunks=`chunk1, chunk2`]]
* Randomly generates a chunk from a comma separated list of chunks.