Skip to content
Snippets Groups Projects
Commit d386ba6f authored by nimrod's avatar nimrod
Browse files

First commit.

parents
Branches
No related tags found
No related merge requests found
.bashrc 0 → 100644
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
# ... or force ignoredups and ignorespace
export HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
if [ -f /usr/local/bin/virtualenvwrapper.sh ]
then
. /usr/local/bin/virtualenvwrapper.sh
fi
alias gcc='gcc --std=c99 -Wall'
alias dpkglog='cat /var/log/dpkg.log | grep -v status | grep -v trigproc | grep -v configure'
alias deborphan='deborphan -a --no-show-section'
export REPREPRO_BASE_DIR=$HOME/Documents/Shore/debian-repository
#export PATH="$PATH:/usr/lib/kde4/libexec"
export EDITOR=vim
alias ansible-vagrant='ansible-playbook Ansible/vagrant.yml -s -i \
.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory \
--private-key=$HOME/.vagrant.d/insecure_private_key -u vagrant -e "state=\
dev"'
alias backup='cat Documents/Backup\ list.yml | \
Documents/yaml2duplicity_include_list.py | duplicity --exclude $HOME \
--include-filelist-stdin $HOME file:///media/nimrod/backup'
alias gen_ssh_config='cat $HOME/.ssh/config.d/* > $HOME/.ssh/config'
export HOMEBREW_CASK_OPTS="--appdir=/Applications" #put this in our .zshrc | .bash_profile
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
new_cgit_repo ()
{
ssh cgit "git init --bare /srv/git/$1"
git clone ssh://cgit/srv/git/$1
}
# Because OSX is the opposite of useful
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
[user]
name = Adar Nimrod
email = nimrod@shore.co.il
[push]
default = simple
*
Compression yes
ControlMaster auto
ControlPath ~/.ssh/controlmaster-%r@%h:%p
ControlPersist 3m
ServerAliveInterval 30
#StrictHostKeyChecking yes
# BigPanda servers
Host prod-* stage-* ec2-* staging* ci.bigpanda.io demo*
User ubuntu
IdentityFile ~/.ssh/bigpanda
Host ender
User nimrod
IdentityFile ~/.ssh/bigpanda
# Disable SSH host key checking for EC2 instances.
Host *.compute-1.amazonaws.com
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
# github.com
Host github.com
User git
IdentityFile ~/.ssh/bigpanda
# shore.co.il infrastructure
Host ns1
HostName ns1.shore.co.il
LocalForward 9091 xbmc.trusted:9091
DynamicForward 8080
User nimrod
Host xbmc
HostName xbmc.trusted
User xbmc
ForwardX11 yes
ProxyCommand ssh ns1 nc %h %p
Host web1
HostName web1.trusted
User nimrod
Host ns2
HostName ns2.shore.co.il
User admin
DynamicForward 8080
Host cgit
HostName cgit.trusted
User nimrod
ProxyCommand ssh ns1 nc %h %p
# Wiser servers
Host loco21
HostName loco21.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host loco40
HostName loco40.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host loco41
HostName loco41.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host loco42
HostName loco42.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host mint01
HostName mint01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host amazonrt
HostName amazonrt.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 61616 localhost:61616
LocalForward 8161 localhost:8161
Host amazonrt02
HostName amazonrt02.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 61616 localhost:61616
LocalForward 8161 localhost:8161
Host db01
HostName db01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
Host db03
HostName db03.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
LocalForward 8080 localhost:80
Host db04
HostName db04.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
Host db05
HostName db05.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
Host blue
HostName blue.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
LocalForward 8080 localhost:80
LocalForward 8666 localhost:8666
LocalForward 11224 localhost:11224
Host hulk01
HostName hulk01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
LocalForward 8080 localhost:80
LocalForward 4730 74.86.96.234:4730
Host hulk02
HostName hulk02.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
LocalForward 8080 localhost:80
LocalForward 6379 localhost:6379
LocalForward 8888 localhost:8888
Host hulk03
HostName hulk03.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host pinky
HostName pinky.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
LocalForward 8088 localhost:80
LocalForward 6379 localhost:6379
LocalForward 8888 localhost:8888
LocalForward 4730 localhost:4730
LocalForward 61616 localhost:61616
LocalForward 8161 localhost:8161
LocalForward 9998 localhost:9998
LocalForward 8080 localhost:8080
LocalForward 8000 localhost:8000
Host statsd
HostName statsd.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 8080 localhost:80
LocalForward 8126 localhost:8126
LocalForward 11211 localhost:11211
Host www04
HostName www04.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host backup01
HostName backup01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host analytics02
HostName analytics02.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
LocalForward 8080 localhost:80
Host redis01
HostName redis01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6379 localhost:6379
Host redis02
HostName redis02.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6379 localhost:6379
Host redis03
HostName redis03.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6379 localhost:6379
Host redis04
HostName redis04.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6379 localhost:6379
Host redis05
HostName redis05.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6379 localhost:6379
Host statsdb
HostName statsdb.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 8080 localhost:80
LocalForward 8126 localhost:8126
LocalForward 8099 localhost:8099
LocalForward 8083 localhost:8083
LocalForward 8086 localhost:8086
LocalForward 8090 localhost:8090
Host staging02
HostName staging02.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 3306 localhost:3306
LocalForward 8080 localhost:80
Host es01
HostName es01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 8080 localhost:80
LocalForward 9200 localhost:9200
LocalForward 9300 localhost:9300
LocalForward 5601 localhost:5601
Host logstash01
HostName logstash01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host scraperout03
HostName scraperout03.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6379 localhost:6379
Host scraperout04
HostName scraperout04.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6379 localhost:6379
Host scraperout05
HostName scraperout05.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6379 localhost:6379
Host influxdb01
HostName influxdb01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host wordpress01
HostName wordpress01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host scrapy01
HostName scrapy01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 6800 localhost:6800
Host b2c01
HostName b2c01.wiser.com
User nimrod
IdentityFile ~/.ssh/wiser
Host maven
HostName ec2-52-0-125-167.compute-1.amazonaws.com
User nimrod
IdentityFile ~/.ssh/wiser
LocalForward 8080 localhost:8080
.vimrc 0 → 100644
"autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
"autocmd BufRead *.py set nocindent
"autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
filetype plugin indent on
setlocal tabstop=4
setlocal softtabstop=4
setlocal shiftwidth=4
setlocal textwidth=80
setlocal smarttab
setlocal expandtab
syntax on
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment