Skip to content

Instantly share code, notes, and snippets.

@davirtavares
davirtavares / .tmux.conf
Created July 27, 2017 17:44
My humble .tmux.conf
set -g display-panes-time 5000
set-window-option -g mode-keys vi
set-option -g history-limit 5000
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
@davirtavares
davirtavares / deploy.sh
Last active August 29, 2015 14:23
The poor man's deploy script
#!/usr/bin/env sh
rev="6542397"
mkdir rev-$rev
git diff -z --diff-filter=ACMRTUXB --name-only -r "$rev"..HEAD | xargs -0 cp --parents -t rev-$rev
<?php
function rlog($data) {
$ch = curl_init('http://requestb.in/17yrdes1');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec ($ch);
}
@davirtavares
davirtavares / .vimrc
Last active July 27, 2017 17:43
My humble .vimrc
syn on
set modeline
set hls
set formatoptions+=r
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Bundle 'gmarik/Vundle.vim'