Skip to content

Instantly share code, notes, and snippets.

View ErisDS's full-sized avatar

Hannah Wolfe ErisDS

View GitHub Profile
@ErisDS
ErisDS / ghost-middleware-stack.txt
Last active August 29, 2015 14:22
Printing Stack For /
Printing Stack For /
query
expressInit
compression
logger
serveSharedFile
serveStatic
serveStatic
serveStatic
decideIsAdmin
@ErisDS
ErisDS / examples.md
Last active July 2, 2025 13:22
Ghost Filter Query examples

Filter Queries - Example Use Cases

Here are a few example use cases, these use cases combine filter with other parameters to make useful API queries. The syntax for any of this may change between now, implementation, and release - they're meant as illustrative examples :)

Fetch 3 posts with tags which match 'photo' or 'video' and aren't the post with id 5.

api.posts.browse({filter: "tags:[photo, video] + id:-5", limit="3"});

GET /api/posts?filter=tags%3A%5Bphoto%2Cvideo%5D%2Bid%3A-5&limit=3

@ErisDS
ErisDS / changelog.md
Created September 3, 2015 13:34
Full 0.7.0 Changelog
  • c02f7d6 Version bump to 0.7.0 - Hannah Wolfe
  • b422d9d Use sequence for migrations instead of Promise.all - Hannah Wolfe
  • 73080dc Adds rudimentary validation to user invite - Hannah Wolfe
  • 2a210b5 Fix teardown of resize handler in content management screen - Kevin Ansfield
  • 8147a7e Fix selected search item appearing as multi-select item in search input - Kevin Ansfield
  • a4e6dd4 Add config.blogUrl key to PSM's seoURL property Closes #5793 - Matt Enlow
  • dd7dbc1 Upgrading Casper to 1.2.5 - Hannah Wolfe
  • dea28c0 Better flickering auto-nav fix - Kevin Ansfield
  • [cf4ed91](https://github.com/TryGhos
npm info install [email protected]
npm info postinstall [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info install [email protected]
> [email protected] install /home/vagrant/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
@ErisDS
ErisDS / plugin.js
Created October 17, 2015 16:11
Bookshelf plugin for introspecting tags
var _ = require('lodash');
module.exports = function (Bookshelf) {
var model = Bookshelf.Model,
collection = Bookshelf.Collection,
modelProto = model.prototype,
collProto = collection.prototype,
Model,
Collection;
@ErisDS
ErisDS / .gitconfig
Last active November 27, 2015 11:25
Changelog generator: add this to your ~/.gitconfig file, and then run `git cl x.x.x..x.x.x+1` E.g. `git cl 0.7.1..0.7.2`
[alias]
cl = log --no-merges --pretty=tformat:'* [%h](https://github.com/TryGhost/Ghost/commit/%h) %s - %an'
@ErisDS
ErisDS / changelog.md
Created November 27, 2015 13:55
Full 0.7.2 Changelog
  • 55045ae Version bump to 0.7.2 - Hannah Wolfe
  • 245095c Origin Header revisited - Sebastian Gierlinger
  • 0462dfe Display error message on setup if origin doesn't match config.js url - Kevin Ansfield
  • f2c7e34 Fix missing error on signin when server has gone away - Kevin Ansfield
  • f25039c Docs link & unique error codes for startup checks - Hannah Wolfe
  • 34d329e Upgrading Casper to 1.2.6 - Hannah Wolfe
  • 18472d7 Specify full SHAs when importing packages in bower.json - Kevin Ansfield
  • c22c866 Dynamically build file patterns for release task - Stephan Bönnemann
  • [161591f](https://github.com/TryGhost
@ErisDS
ErisDS / changelog.md
Created December 16, 2015 13:54
Full 0.7.3 Changelog
  • 52b76f2 Version bump to 0.7.3 - Hannah Wolfe
  • b928366 Fix password reset - Kevin Ansfield
  • 323b57b Release should run all prod tasks - Hannah Wolfe
  • 14c3bd6 Ensure filter parse errors generate 422 not 500 - Hannah Wolfe
  • e5b0609 Fixing bug with ghost-url overwriting url - Hannah Wolfe
  • cbea617 Ensure {{ghost_head}} doesn't overwrite values - Hannah Wolfe
  • 117ab27 Remove setScrollClassName mixin and usage - Kevin Ansfield
  • 9eadeb9 Prep shared API URL util for use on external sites - Hannah Wolfe
  • bc97de5 Unify usage of config in unit tes
@ErisDS
ErisDS / changelog.md
Created December 22, 2015 17:23
Full 0.7.4 Changelog
  • 8d0597a Version bump to 0.7.4 - Hannah Wolfe
  • 20f1028 Switch channel filters to use strings not literals - Hannah Wolfe
  • ea1e454 fix authentication error if setup/two is re-submitted - Austin Burdine
  • 3b235b9 Fix broken @last for foreach with limit - Fabian Becker
  • 9899f8d Fix non-idempotent Ghost API helper - Add test - Don't override apiUrl - Fabian Becker
  • b5b0ec1 Register helpers as non-asynchronous Ref #5850 - Matt Enlow
  • 7ce8819 Fix duplicate URL input field in image uploader - Kevin P. Kucharczyk
@ErisDS
ErisDS / changelog.md
Created January 12, 2016 11:26
Full 0.7.5 Changelog
  • 248c3da Version bump to 0.7.5 - Hannah Wolfe
  • ca4a66e Upgrading Casper to 1.2.7 - Hannah Wolfe
  • e4c52a6 Fix urlFor to handle secure correctly - JT Turner
  • d66e9e7 Minor usability improvements for editor screen - AileenCGN
  • b407dcf Quick-fix for unnecessary "discard changes" modals - Kevin Ansfield
  • 70327c2 Add attributes for {{tags}} and {{#foreach}} helpers - Szu Yaung
  • 167aca6 Transition after setup step 3 submission even if invite takes a long time - Kevin Ansfield
  • 8a16dd5 Disallow access to author/tag rss feeds if private blogging is on - Also fixes an issue where posts/tags with slu