Skip to content

Instantly share code, notes, and snippets.

View erich's full-sized avatar

Erich Kaderka erich

View GitHub Profile
set -g base-index 1
set-window-option -g pane-base-index 1
set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Improve colors
set -g default-terminal 'screen-256color'
@erich
erich / .vimrc
Last active August 6, 2017 19:26
my vimrc
"from gary bernhardt's dotfiles [57/888]
set nocompatible
" allow unsaved background buffers and remember marks/undo for them
set hidden
" remember more commands and search history
set history=10000
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
#This could work:
class MegaLotto
NUMBERS = 5
def self.draw
NUMBERS.times.inject([]) do |arr, i|
arr << self.random_draw
end
end
# Simple installation notes for iterm2 and Solarized
Set ZSH_THEME in ~/.zshrc to blinks
https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized
#if you create new profile e.g. solarized you have to set him as default
#Simple installation notes for janus and Solarized
# .vimrc.before
let g:solarized_termcolors=256
set t_Co=16
set background=dark
@erich
erich / .vimrc
Created August 19, 2012 18:03
Vim configuration
" Install vundle - git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
" Run BundleInstall
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
@erich
erich / gist:3313867
Created August 10, 2012 12:20
Installation of Inconsolata font
font=Inconsolata.otf && \
curl http://www.levien.com/type/myfonts/$font -o /tmp/$font && \
open -W -a /Applications/Font\ Book.app /tmp/$font && \
rm /tmp/$font && \
unset font
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs.push "lib"
t.test_files = FileList['*_spec.rb']
t.verbose = true
end
= form_for [@user, @task], :html => { :class => 'form-inline' } do |f|
-if @task.errors.any?
#error_explanation
%h2= "#{pluralize(@task.errors.count, "error")} prohibited this task from being saved:"
%ul
@erich
erich / default.vcl
Created September 23, 2011 12:57
Varnish configuration
backend default {
.host = "127.0.0.1";
.port = "6000";
}
sub vcl_recv {
if (req.request == "PURGE")
{
return(lookup);
}