brew install cmake
brew install python
sudo easy_install pip
Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line
PATH="/usr/local/share/python/:$PATH"
<touchégg> | |
<settings> | |
<property name="composed_gestures_time">111</property> | |
</settings> | |
<application name="All"> | |
<gesture type="DRAG" fingers="4" direction="DOWN"> | |
<action type="SEND_KEYS">Super+a</action> | |
</gesture> | |
<gesture type="DRAG" fingers="4" direction="UP"> | |
<action type="SEND_KEYS">Super+s</action> |
" Use neocomplete. | |
let g:neocomplete#enable_at_startup = 1 | |
" Neocomplete Plugin key-mappings. | |
inoremap <expr><C-g> neocomplete#undo_completion() | |
inoremap <expr><C-l> neocomplete#complete_common_string() | |
" Neosnippet Recommended key-mappings. | |
" <CR>: close popup and save indent. | |
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR> |
function firstUnique (str) { | |
var hash = {}; | |
for (var i = 0; i < str.length; i++) { | |
hash[str[i]] = hash[str[i]] + 1 || 1; | |
} | |
for (var i = 0; i < str.length; i++) { | |
if (hash[str[i]] === 1) { | |
return str[i]; | |
} | |
} |
sudo apt-get install liblua5.1-dev | |
sudo mkdir /usr/include/lua5.1/include/ | |
sudo cp /usr/include/lua5.1/* /usr/include/lua5.1/include/ | |
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so | |
hg clone https://code.google.com/p/vim/ | |
cd vim | |
./configure --with-features=huge \ | |
--enable-perlinterp \ | |
--enable-rubyinterp \ | |
--enable-pythoninterp=yes \ |
find . -name "*.js" -print0 | xargs -0 sed -i '' -e 's/foo/bar/g' |
" My prefs | |
syntax on | |
set number | |
colorscheme solarized | |
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab | |
set shellcmdflag=-lc | |
set incsearch | |
set nowrap | |
set omnifunc=csscomplete#CompleteCSS | |
set guifont=mono\ 8 |
NameVirtualHost 127.0.0.1 | |
<VirtualHost 127.0.0.1:80> | |
ServerAdmin webmaster@localhost | |
ServerName site2 | |
DocumentRoot /sites/site2/www/ | |
<Directory /> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
allow from all |
#!/bin/bash | |
####################################################### | |
# CRIBBS -- Cron Rsync Incremental Backup Bash Script # | |
# AUTHOR: Adam Merrifield <http://adam.merrifield.ca> # | |
# (and countless sources from the web) # | |
# DATE: 05-26-11 23:17 # | |
# VERSION: 1.0.0 # | |
####################################################### | |
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
$ sudo chown -R `whoami` /usr/local/texlive | |
$ tlmgr update --self | |
$ tlmgr install ucs | |
$ tlmgr install etoolbox | |
# Install pandoc view homebrew |