Skip to content

Instantly share code, notes, and snippets.

View larryhynes's full-sized avatar

larryhynes larryhynes

View GitHub Profile
#!/bin/sh
TODOFILE=/Users/larry/todo.taskpaper
TEMPTODO=`basename $0`
LINE=1
TMPFILE=`mktemp /tmp/${TEMPTODO}.XXXXXX` || exit 1
cat | sed 's/^/ -/' | unexpand -t4 > $TMPFILE || exit 1
ed -s $TODOFILE <<SHAZAM
${LINE}r $TMPFILE
w

Keybase proof

I hereby claim:

  • I am larryhynes on github.
  • I am lhynes (https://keybase.io/lhynes) on keybase.
  • I have a public key whose fingerprint is 8A9C B07E 8FBE A76C 6DEE ECB6 A2D9 7C3A 50FC 5A0D

To claim this, I am signing this object:

set nocompatible
filetype off
" Use utf-8
" =============================================================================
set encoding=utf-8
" Remap leader from / to ,
" =============================================================================
let mapleader = ","
#!/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"
# browser open
browser open %u
bookmark-cmd "/Users/larry/pinboard_bookmark.sh"
bookmark-autopilot yes
save-path ~/
color info blue black
wget --http-user="YOURUSERNAME" --http-passwd="YOURPASSWORD" -O - https://api.pinboard.in/v1/posts/add\?url\="https://larryhynes.com"\&description\="description"\&tags\="foo,bar"
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
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"
@larryhynes
larryhynes / .slate
Last active December 27, 2015 17:29
# 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
#!/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