Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@bzerangue
bzerangue / html2md-with-pandoc.sh
Created April 26, 2012 23:14
RECURSIVELY Bash convert all your html to markdown files (with Pandoc)
find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
@cferdinandi
cferdinandi / terminal-cheat-sheet.txt
Last active July 22, 2024 20:51
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@fredkelly
fredkelly / navigation.html
Last active April 19, 2018 13:38
Generating a nested navigation in Jekyll with Liquid
{% assign pages = site.html_pages | where: 'visible', true | where_exp: 'page', 'page.url contains include.context' | group_by: 'dir' %}
<ul>
{% for group in pages %}
{% if group.size > 1 and group.name != include.context %}
<li class="{% if page.url contains group.name %}active{% endif %}">
<span>{{ group.name | replace: '/', '' | capitalize }}</span>
{% include navigation.html context=group.name %}
</li>
{% else %}
{% for item in group.items %}
@fadingdust
fadingdust / wp-vue-starter.js
Created March 16, 2018 22:29
Basic Vue Router Config from @michaelsoriano
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [ { path: '/', component: Home },
{ path: '/post/:slug', name: 'post', component: Single },
{ path: '/preview/:id', name: 'preview', component: Single },
{ path: '/page/:slug', name: 'page', component: Page },
{ path: '/category/:cat_id', name:'category', component: Archive },
{ path: '/tag/:tag_id', name : 'tag', component: Archive },
{ path: '/blog/', name : 'blog', component: Archive },
{ path: '/search/', name : 'search', component: Search },