<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>localhost.pbcopy</string>
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
#include <sys/time.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
int main() | |
{ | |
struct timeval start, end; | |
long mtime, seconds, useconds; | |
gettimeofday(&start, NULL); |
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
package main | |
import "fmt" | |
func main(){ | |
fmt.Println("Hello world!") | |
} |
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
" Description: Vimrc with golang compatibility. Replaces default vimrc | |
" Author: Carlos Edmundo Martinez Mendoza. | |
" Created: 2016-03-09 00:00:00 | |
" Necesary for lots of cool vim things | |
set nocompatible | |
" {{{ Auto commands | |
" | |
" Automatically cd into the directory that the file is in |
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
"{{{Auto Commands | |
" Automatically cd into the directory that the file is in | |
autocmd VimEnter * silent! :cd%:p:h | |
" Remove any trailing whitespace that is in the file | |
autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif | |
" Restore cursor position to where it was before | |
augroup JumpCursorOnEdit |
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
#!/usr/bin/env bash | |
content=`cat /dev/stdin` | |
value=`echo $content | python -m 'json.tool' 2>&1` | |
if [ "$value" == "No JSON object could be decoded" ]; then | |
echo "$content" | lynx -stdin | |
else | |
echo "$value" | pygmentize -l json | |
fi |
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
#!/usr/bin/env bash | |
function killpidfile { | |
echo "Killing process" | |
if [ -f ".debug.pid" ]; then | |
kill -15 $(cat .debug.pid) | |
fi | |
} | |
function build { |
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
# zsh zsh zsh | |
set-option -g default-shell /bin/zsh | |
# remap prefix from 'C-b' to 'F1' | |
unbind C-b | |
set-option -g prefix F1 | |
bind-key F1 send-prefix | |
# split panes using F3 and F4 and F6 | |
bind F2 split-window -h -c '#{pane_current_path}' \; resize-pane -R 20 |
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
set shell=/bin/bash | |
" Plugins | |
call plug#begin() | |
Plug 'preservim/tagbar' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } | |
Plug 'whonore/Coqtail' |