This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% this is my very-messy-but-it-works default .tex template for use with pandoc | |
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} | |
\usepackage{lmodern} | |
\usepackage{amssymb,amsmath} | |
\usepackage{ifxetex,ifluatex} | |
\usepackage{booktabs} | |
\usepackage{fixltx2e} % provides \textsubscript | |
% use upquote if available, for straight quotes in verbatim environments | |
\IfFileExists{upquote.sty}{\usepackage{upquote}}{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# mutt_to_taskpaper.sh | |
# larryhynes.net/ | |
# Important disclaimer: I have no idea what I'm doing | |
# This script will take the subject line of an email in mutt and add it to your Taskpaper inbox provided that "Inbox:" is the first line of your taskpaper file. The script can be called by a macro in mutt by adding `macro index T "<pipe-entry>~/mutt_to_taskpaper.sh<enter>"` to your .muttrc file, then T will add the todo item. You may need to make sure that the script is executable. You can adjust the path and name of your taskpaper file below to suit your setup. | |
TODOFILE=/Users/larry/todo.taskpaper | |
TEMPTODO=$(basename "$0") | |
LINE=1 | |
TMPFILE=$(mktemp /tmp/"${TEMPTODO}".XXXXXX) || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if &term == 'xterm-256color' || &term == 'screen-256color' || &term == 'rxvt-256color' | |
let &t_EI = "\<Esc>[1 q" " blinking block in normal/visual modes | |
let &t_SI = "\<Esc>[5 q" " blinking bar in insert mode | |
let &t_SR = "\<Esc>[3 q" " blinking underline in replace mode | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let hintcharacters = "1234567890" | |
let locale = "uk" | |
let barposition = "bottom" | |
set nohud | |
let searchengine startpage = "https://startpage.com/do/dsearch?query=%s&cat=web&pl=chrome&language=english" | |
let defaultengine = "duckduckgo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://larryhynes.net/2013/12/launchbar-to-taskpaper.html | |
# Important disclaimer: I have no idea what I’m doing | |
TODOFILE=/Users/larry/todo.taskpaper | |
TEMPTODO=`basename $0` | |
LINE=1 | |
TMPFILE=`mktemp /tmp/${TEMPTODO}.XXXXXX` || exit 1 | |
printf "$1" | sed 's/^/ - /' | unexpand -t4 > $TMPFILE || exit 1 | |
ed -s $TODOFILE <<EOF | |
${LINE}r $TMPFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration is split into the following directives: | |
# config (for global configurations) | |
config defaultToCurrentScreen true | |
config resizePercentOf screenSize | |
# alias (to create alias variables) | |
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\providecommand{\tightlist}{% | |
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias todop="sed '/^Archive/,\$d' ~/vimwiki/todo.taskpaper | paps --landscape --columns=2 --font=Source\ Sans\ Pro\ 10 --paper=A4 --left-margin=72 | /usr/bin/open -f -a Preview" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# newsbeuter bookmarking plugin for pinboard | |
# shamelessly copied from the newsbeuter bookmarking plugin for del.icio.us written by | |
# (c) 2007 Andreas Krennmair | |
# documentation: https://pinboard.in/api | |
username="" | |
password="" | |
tag="via:newsbeuter" | |
toread="yes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# browser open | |
browser open %u | |
bookmark-cmd "/Users/larry/pinboard_bookmark.sh" | |
bookmark-autopilot yes | |
save-path ~/ | |
color info blue black |
NewerOlder