Skip to content

Instantly share code, notes, and snippets.

Avatar

larryhynes larryhynes

View GitHub Profile
@larryhynes
larryhynes / cursor.vimrc
Created Jul 10, 2016
Change vim cursor for different modes
View cursor.vimrc
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
View cvimrc
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"
View gist:df8f20c3e5cbaf6932c8
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"
View gist:5d4fa6f54478546fdba1
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
View default.tex
% 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}}{}
View gist:dc8af5bbb64254d1938e
wget --http-user="YOURUSERNAME" --http-passwd="YOURPASSWORD" -O - https://api.pinboard.in/v1/posts/add\?url\="https://larryhynes.com"\&description\="description"\&tags\="foo,bar"
View config
# browser open
browser open %u
bookmark-cmd "/Users/larry/pinboard_bookmark.sh"
bookmark-autopilot yes
save-path ~/
color info blue black
View pinboard_bookmark.sh
#!/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"
View .vimrc
set nocompatible
filetype off
" Use utf-8
" =============================================================================
set encoding=utf-8
" Remap leader from / to ,
" =============================================================================
let mapleader = ","
View keybase.md

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: