- 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
var express = require('express'); | |
var app = express(); | |
app.get('/replace', function(req, res) { | |
var request = require('request'); | |
var stream = require('stream'); | |
var zlib = require('zlib'); | |
var url = req.query.url; |
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
git config --global url."https://".insteadOf git:// |
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
# linux | |
stat -c %a FILE | |
# OS X | |
stat -f "%OLp" FILENAME |
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
select sys_context('userenv','db_name') from dual; |
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 |
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
// 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
" 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
<?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> |
OlderNewer