Skip to content

Instantly share code, notes, and snippets.

@narbs
narbs / ip2chrome.vim
Created May 2, 2012
This vim script converts an Instapaper csv file to a list of chrome bookmark links as html. Paste these into an empty chrome bookmark template and use this to import your links from Instapaper into Pinboard
View ip2chrome.vim
%s/URL,Title,Selection,Folder\n//
%s/",[^,]*,[^,]*$/"/
%s/\(.*\),"\(.*\)"$/<DT><A HREF="\1">\2<\/A>/
@narbs
narbs / suck.sh
Created Aug 24, 2011
iTunes connect auto ingress bash script
View suck.sh
#!/bin/bash
itc_username=some_username
itc_password=some_password
itc_account=12345678
yesterday=`date -v-1d +"%Y%m%d"`
if [ "$1" == "" ]; then
echo downloading file for yesterday: $yesterday
View taskpaper .vimrc
:fu! Taskpaper()
:return setline(line("."), getline(line(".")) . "@done(" . strftime("%Y-%m-%d") . ")")
:endf
:map <F11> <ESC>:call Taskpaper()<CR><ESC>
:imap <F11> <ESC>:call Taskpaper()<CR><ESC>
View .vimrc
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
behave xterm
set selectmode=mouse
set lines=50
set co=80
set vb
set ignorecase
set lcs=tab:>-,trail:-
set nolist
You can’t perform that action at this time.