Skip to content

Commit

Permalink
initial commit of dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Cam Cope committed Jun 10, 2014
0 parents commit bfdac17
Show file tree
Hide file tree
Showing 8 changed files with 390 additions and 0 deletions.
39 changes: 39 additions & 0 deletions doing/.doingrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
doing_file: "~/Dropbox/Work/what_was_i_doing.md"
current_section: Currently
editor_app:
templates:
default:
date_format: "%Y-%m-%d %H:%M"
template: "%date | %title%note"
wrap_width: 0
today:
date_format: "%_I:%M%P"
template: "%date: %title %interval%note"
wrap_width: 0
last:
date_format: "%-I:%M%P on %a"
template: "%title (at %date)%odnote"
wrap_width: 88
recent:
date_format: "%_I:%M%P"
template: "%shortdate: %title"
wrap_width: 88
views:
done:
date_format: "%_I:%M%P"
template: "%date | %title%note"
wrap_width: 0
section: All
count: 0
order: desc
tags: done complete cancelled
tags_bool: OR
color:
date_format: "%F %_I:%M%P"
template: "%boldblack%date %boldgreen| %boldwhite%title%default%note"
wrap_width: 0
section: Currently
count: 10
order: asc
:include_notes: true
19 changes: 19 additions & 0 deletions git/.gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[user]
name = Cam Cope
email = [email protected]
[color]
ui = true
[format]
pretty = %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset

[alias]
co = checkout
ci = commit
dt = difftool
st = status
br = branch
type = cat-file -t
dump = cat-file -p
change = !sh -c 'git difftool ${1-HEAD}^ ${1-HEAD}' -
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --decorate
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
47 changes: 47 additions & 0 deletions gpu/.drirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<driconf>
<device screen="0" driver="i965">
<application name="Default">
<option name="force_s3tc_enable" value="true" />
<option name="no_rast" value="false" />
<option name="always_flush_cache" value="false" />
<option name="stub_occlusion_query" value="false" />
<option name="shader_precompile" value="false" />
<option name="hiz" value="true" />
<option name="always_flush_batch" value="false" />
<option name="bo_reuse" value="1" />
<option name="early_z" value="false" />
<option name="force_glsl_extensions_warn" value="false" />
<option name="disable_glsl_line_continuations" value="false" />
<option name="texture_tiling" value="true" />
<option name="disable_blend_func_extended" value="false" />
<option name="vblank_mode" value="3" />
<option name="allow_large_textures" value="2" />
<option name="fragment_shader" value="true" />
</application>
<application name="Unigine Sanctuary" executable="Sanctuary">
<option name="force_glsl_extensions_warn" value="true" />
<option name="disable_blend_func_extended" value="true" />
</application>
<application name="Unigine Tropics" executable="Tropics">
<option name="force_glsl_extensions_warn" value="true" />
<option name="disable_blend_func_extended" value="true" />
</application>
<application name="Unigine Heaven (32-bit)" executable="heaven_x86">
<option name="force_glsl_extensions_warn" value="true" />
<option name="disable_blend_func_extended" value="true" />
</application>
<application name="Unigine Heaven (64-bit)" executable="heaven_x64">
<option name="force_glsl_extensions_warn" value="true" />
<option name="disable_blend_func_extended" value="true" />
</application>
<application name="Unigine OilRush (32-bit)" executable="OilRush_x86">
<option name="disable_blend_func_extended" value="true" />
</application>
<application name="Unigine OilRush (64-bit)" executable="OilRush_x64">
<option name="disable_blend_func_extended" value="true" />
</application>
<application name="Savage 2" executable="savage2.bin">
<option name="disable_glsl_line_continuations" value="true" />
</application>
</device>
</driconf>
21 changes: 21 additions & 0 deletions ssh/.ssh/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ForwardAgent=yes
GSSAPIAuthentication=no
HashKnownHosts=no
ServerAliveInterval 30
TCPKeepAlive=yes
# Use Control Master so:
# 1. Make opening multiple connections through the bastion faster
# 2. Reduce password typing
ControlMaster auto
ControlPath ~/.ssh/ssh_control_%h_%p_%r

# bastion
Host *.DOMAIN
ProxyCommand ssh bastion.DOMAIN.com nc %h %p

Host BOX
User cam

Host BOX2
User user2
HostName ip.address
111 changes: 111 additions & 0 deletions terminal/.bash_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# .bash_profile
output(){
if [ -f ~/.profiledebug ] && [ -n "$1" ]; then
echo "$1";
fi;
}

# Get the aliases and functions
[[ -s ${HOME}/.profile ]] && . ${HOME}/.profile

# Adjust .bash_history size
export HISTSIZE=50000
export HISTFILESIZE=20000
HISTCONTROL=ignoreboth
shopt -s histappend
shopt -s cmdhist
PROMPT_COMMAND='history -a'
EDITOR=vim

GIT_PS1_SHOWDIRTYSTATE=0
GIT_PS1_SHOWSTASHSTATE=0
GIT_PS1_SHOWUNTRACKEDFILES=0
GIT_PS1_SHOWUPSTREAM="auto"


# Mac or Linux?
UNAME=`uname -s`;
output "Using BASH profile for ${UNAME}";

alias ..='cd ..'
alias ...='cd ../..'
alias +='pushd .'

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || 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

# Command Aliases
if [ $UNAME == 'Darwin' ]; then
output "Configuring ${UNAME} aliases...";
alias ll='ls -AohGF';
alias sshx='ssh -Y';
alias top='top -o cpu';
alias tree='tree -DCF';
alias cdg='cd /Users/`whoami`/chef/chef-repo';
elif [ $UNAME == 'Linux' ]; then
output "Configuring ${UNAME} aliases...";
alias ll='ls -alhGF --color';
if [ -f /etc/debian_version ]; then
alias cdng='cd /etc/nagios3';
else
alias cdng='cd /usr/local/nagios';
fi
alias cdbc='cd /usr/local/brightcove';
alias atup='atop -A -v -f 3';
alias duf='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'
alias nags='cd ~/cfengine/repository/classes/tools/usr/local/nagios/etc/;svn update;vim services.cfg'
alias genup='cd ~/cfengine/repository/classes/base/etc;svn up;mv -f ~/genders-$(dnsdomainname) genders;svn diff; nodeattr --parse-check -f genders'
fi;

#alias grep='grep --color=auto';
export GREP_OPTIONS='--color=auto'

# PS1 Setup:
if [ $UNAME == 'Linux' ]; then
case `hostname -d` in
"DOMAIN") HOSTCOLOR=31;; # Red
"DOMAIN2") HOSTCOLOR=36;; # Cyan
"DOMAIN3") HOSTCOLOR=37;; # White
"DOMAIN4") HOSTCOLOR=34;; # Blue
"DOMAIN5") HOSTCOLOR=30;; # Black
"DOMAIN6") HOSTCOLOR=35;; # Magenta
esac;
fi;

if [ -z "$HOSTCOLOR" ]; then
output "No domain preference found. Setting to default...";
HOSTCOLOR=37; # White
fi;

export PS1='[\[\e[0;32m\]\u\[\e[1;37m\]@\[\e[1;${HOSTCOLOR}m\]\H\[\e[1;33m\]:\w$(__git_ps1 " (%s)")\[\e[0m\]]\$ '

# Environment Variables
export COPYFILE_DISABLE=true

# Perforce Setup
if [ -f /usr/local/bin/p4 ]; then
output "Configuring Perforce Settings...";
export P4USER='ccope'
export P4PORT='hostname:port'
export P4CONFIG='p4config.txt'
export P4CLIENT='ccope-box'
export P4EDITOR='vim +/"<enter description here>" -c "%s/<enter description here>/null\r Reviewer:syseng/g" -c "%s/null/ /g"'
output "P4CLIENT=$P4CLIENT, P4PORT=$P4PORT";
fi

export CLICOLOR=1

# User specific environment and startup programs

export PATH=/sbin:/usr/sbin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
LC_ALL="en_US.UTF-8"
125 changes: 125 additions & 0 deletions terminal/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# ~/.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 or lines starting with space in the history.
# See bash(1) for more options
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)
HISTSIZE=90000
HISTFILESIZE=20000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# 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

GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWSTASHSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
GIT_PS1_SHOWUPSTREAM="auto"

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$(__git_ps1 "(%s)")$ '
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
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

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || 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 -alF'
alias la='ls -A'
alias l='ls -CF'
alias ls='ls --color=auto'

# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# 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 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 ] && ! shopt -oq posix; then
. /etc/bash_completion
fi

export PATH
export P4EDITOR='vim'
export P4USER='ccope'
export P4PORT='perforce.vidmark.local:1666'
export P4CONFIG='p4config.txt'
export P4CLIENT='ccope-think'
export EDITOR="vim"
export P4EDITOR='vim +/"<enter description here>" -c "%s/<enter description here>/null\r Reviewer:syseng/g" -c "%s/null/ /g"'

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
6 changes: 6 additions & 0 deletions terminal/.inputrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[1;5C": forward-word
"\e[1;5D": backward-word
set show-all-if-ambiguous on
set completion-ignore-case on
22 changes: 22 additions & 0 deletions terminal/.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi

0 comments on commit bfdac17

Please sign in to comment.