Skip to content

Instantly share code, notes, and snippets.

BEGIN MESSAGE.
6FiKhhFNeKRvw1P x8i7IL4tcmuRjeM mBseAf0mUxPFF9i JJr72P6HOhUBL90
1Tak3EmOp0olnLs Dpr87SZ7DNHTCKq 6Xr2MZHgg6NpHVS jIFveR4X8MZXRKE
zGj7h3GfCSjioL9 xN6BCx8KOTp00T6 Qdy3ulcc7fQGRqM NZucveZR7vDUCt5
4Ibo9wWggjx6Fax ahQ3NR0CGfXOvcs Fknzh0Qz5Z.
END MESSAGE.
@mattlenz
mattlenz / .env
Last active August 11, 2019 16:50
Kirby Nuxt
KIRBY_URL=http://localhost:8888
KIRBY_USERNAME=
KIRBY_PASSWORD=
@mattlenz
mattlenz / kirbytext.js
Last active November 21, 2020 19:26
Kirbytext JS parser
const md = require('markdown-it')({
html: true,
linkify: true,
typographer: true,
breaks: true,
})
.use(require('markdown-it-deflist'))
.use(require('markdown-it-footnote'))
function kirbytext(text, page) {
@mattlenz
mattlenz / .tmux.conf
Last active January 12, 2018 03:07
tmux config
# mouse
set -g mouse on
# vi mode
set-window-option -g mode-keys vi
# remap C-b to C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
@mattlenz
mattlenz / keybase.md
Created July 25, 2016 01:35
Keybase Proof

Keybase proof

I hereby claim:

  • I am mattlenz on github.
  • I am mattlenz (https://keybase.io/mattlenz) on keybase.
  • I have a public key whose fingerprint is 9EF0 4F00 EB97 ADD5 17DE 5438 6831 9977 432F 6D2A

To claim this, I am signing this object:

@mattlenz
mattlenz / ptvproxy.js
Created June 30, 2014 02:53
PTV API Proxy
var Hapi = require('hapi');
var server = module.exports = Hapi.createServer('localhost', 8000);
var credentials = {
ptv: {
devid: 'YOUR_PTV_DEVID',
key: 'YOUR_PTV_KEY'
}
}
@mattlenz
mattlenz / ellipsis.css
Created January 30, 2014 01:40
CSS Ellipsis Text Wrapping
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@mattlenz
mattlenz / prefixfree.sh
Created November 29, 2013 03:36
Install Lea Verou's prefixfree with Bower.
bower install prefix-free#gh-pages
@mattlenz
mattlenz / server.sh
Created November 1, 2013 06:25
Simple HTTP Server
python -m SimpleHTTPServer
@mattlenz
mattlenz / social.html
Last active December 17, 2015 19:29
Plain HTML Social Sharing
<a href="http://www.facebook.com/sharer/sharer.php?u={{URL}}">Facebook</a>
<a href="http://pinterest.com/pin/create/button/?url={{URL}}&media=&description=">Pinterest</a>
<a href="http://www.twitter.com/share?url={{URL}}">Twitter</a>
<a href="http://www.tumblr.com/share/link?url={{URL}}">Tumblr</a>