Skip to content

Instantly share code, notes, and snippets.

function boot-tmux {
echo -ne "\033]0;$@\007"
tmux new-session -d -s $@
tmux send-keys -t $@ "teamocil --here $@" C-m
tmux attach-session -t $@
}
@cacoco
cacoco / export-google-docs-to-restructured-text.js
Last active June 1, 2021 19:33 — forked from simonw/export-google-docs-to-restructured-text.js
Google Apps script to convert a Google Docs document into reStructuredText
function onOpen() {
var ui = DocumentApp.getUi();
ui.createMenu('Convert to .RST')
.addItem('Convert to .RST and email me the result', 'ConvertToRestructuredText')
.addToUi();
}
// Adopted from https://github.com/mangini/gdocs2md by Renato Mangini
// License: Apache License Version 2.0
String.prototype.repeat = String.prototype.repeat || function(num) {