- Install Xcode and command line tools
- Create .bash_profile and source custom bash profile
- Setup SSH keys
- Install Iterm2: http://www.iterm2.com/
- install keyremap4macbook (if using specialized keyboard): https://pqrs.org/macosx/keyremap4macbook/
- Install Homebrew: http://brew.sh/
- brew install macvim
- sudo mv /usr/bin/vim /usr/bin/vim73 # make sure homebrew version takes precendence
- Put vimrc file in appropriate place
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
sed -n 16224,16482p filename > newfile |
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
#Below configs from | |
# https://wiki.archlinux.org/index.php/Tmux#Vim_friendly_configuration | |
#Prefix is Ctrl-a | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
set -sg escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 |
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
# for homebrew, make sure homebrew stuff is last in path | |
export PATH=/usr/local/bin:/usr/local/sbin:~/bin:$PATH | |
function mi() { mvim "$@" ;} | |
# git | |
alias gs='clear; git status' | |
alias sstatus='clear; svn status' | |
function gadd() { git add "$@" ;} |
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
# Tomcat setup | |
# add the following to the JVM_OPTS for the given tomcat instance | |
VISUAL_VM_SETTINGS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.port=8086 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Xverify:none" | |
# note that on os x, some StackOverflow posts have discussed the need for an additiona "-Xshare:off" setting. | |
# To run jstatd | |
# create a file called jstatd.all.policy | |
# see http://docs.oracle.com/javase/7/docs/technotes/tools/share/jstatd.html |
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
<?xml version="1.0"?> | |
<!-- key modifier file for https://pqrs.org/macosx/keyremap4macbook/ --> | |
<root> | |
<appdef> | |
<appname>MacVim</appname> | |
<equal>org.vim.MacVim</equal> | |
</appdef> | |
<appdef> | |
<appname>Iterm2</appname> |
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
" A lot of this comes from | |
" https://github.com/thoughtbot/dotfiles/blob/master/vimrc | |
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
"filetype off | |
filetype plugin indent on |
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
// in default settings | |
{ | |
// make sure this happens so vintage mode is enabled | |
"ignored_packages": [] | |
} | |
// in user settings | |
{ | |
// start in command mode instead of edit mode | |
"vintage_start_in_command_mode": true, |
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
find . -name .svn | xargs rm -rf |
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/libexec/java_home -V |