Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mint-textpattern.txt
# rjh_minteresting v0.2
# Gives you the most popular pages via Mint by Shaun Inman.
# Jakob Heuser
# http://www.felocity.org/
# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................
YTo5OntzOjc6InZlcnNpb24iO3M6MzoiMC4yIjtzOjY6ImF1dGhvciI7czoxMjoiSmFrb2Ig
SGV1c2VyIjtzOjEwOiJhdXRob3JfdXJpIjtzOjI0OiJodHRwOi8vd3d3LmZlbG9jaXR5Lm9y
Zy8iO3M6MTE6ImRlc2NyaXB0aW9uIjtzOjU3OiJHaXZlcyB5b3UgdGhlIG1vc3QgcG9wdWxh
ciBwYWdlcyB2aWEgTWludCBieSBTaGF1biBJbm1hbi4iO3M6NDoidHlwZSI7aTowO3M6NDoi
bmFtZSI7czoxNjoicmpoX21pbnRlcmVzdGluZyI7czo0OiJoZWxwIjtzOjQ0ODE6IgoJPGgx
Pk1vc3QgTWludGVyZXN0aW5nIEhlbHA8L2gxPgoKCTxwPkV4YW1wbGU6PGJyIC8+CnR4cDpy
amhfbWludGVyZXN0aW5nIG1pbnRfcHJlZml4PSYjODIyMTttaW50XyYjODIyMTsgbGltaXQ9
JiM4MjIxOzEwJiM4MjIxOyB3cmFwdGFnPSYjODIyMTt1bCYjODIyMTs8YnIgLz4KYnJlYWt0
YWc9JiM4MjIxO2xpJiM4MjIxOyByZXNvdXJjZT0mIzgyMjE7aHR0cDovLzxzcGFuPnlvdXJ3
ZWJzaXRlLmNvbS9jb25zdHJhaW4vPC9zcGFuPiYjODIyMTs8YnIgLz4KYXJ0aWNsZV9tYXRj
aD0mIzgyMjE7UHJlZml4IHRvIG15IHtUSVRMRX0gYW5kIFN1ZmZpeCYjODIyMTs8YnIgLz4K
Y2FjaGVkaXI9JiM4MjIxOy9teS9jYWNoZWRpciYjODIyMTsgY2FjaGVsaWZlPSYjODIyMT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