This file contains hidden or 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
| let SessionLoad = 1 | |
| if &cp | set nocp | endif | |
| let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 | |
| let v:this_session=expand("<sfile>:p") | |
| silent only | |
| cd ~/repository/dotfiles/vim-test | |
| if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' | |
| let s:wipebuf = bufnr('%') | |
| endif | |
| set shortmess=aoO |
This file contains hidden or 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
| set all& | |
| set nocompatible | |
| set runtimepath= | |
| set rtp+=~/repository/delimitMate/ | |
| set backspace=indent,eol,start | |
| let delimitMate_expand_cr = 1 |
This file contains hidden or 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
| # References: | |
| # GRML - https://github.com/grml/grml-etc-core | |
| # zsh-users - https://github.com/zsh-users | |
| [[ $ZDOTDIR == '' ]] && export ZDOTDIR=$HOME | |
| if [[ $ZDOTDIR == '/etc/users/bootleq' && -f $ZDOTDIR/.vimrc ]]; then | |
| alias vim="vim -u $ZDOTDIR/.vimrc" | |
| fi |
This file contains hidden or 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
| [user] | |
| name = bootleq | |
| email = bootleq@gmail.com | |
| [color] | |
| ui = auto | |
| ; [help] | |
| ; format = web |
This file contains hidden or 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
| module ActionController | |
| class Metal | |
| attr_internal :cached_content_for | |
| end | |
| module Caching | |
| module Actions | |
| def _save_fragment(name, options) | |
| return unless caching_allowed? |
This file contains hidden or 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
| rtouch() { | |
| emulate -L zsh | |
| if [[ -d tmp ]]; then | |
| if which passenger 2>&1 >/dev/null; then | |
| touch tmp/restart.txt && echo 'file touched.' | |
| elif which unicorn_rails 2>&1 >/dev/null; then | |
| if [[ -r tmp/pids/unicorn.pid && -n $(ps h -p `cat tmp/pids/unicorn.pid` | tr -d ' ') ]]; then | |
| kill -USR2 $(cat tmp/pids/unicorn.pid) && echo "process killed." | |
| elif [[ -f config/unicorn.rb ]] && [[ -n $RAILS_ENV ]]; then | |
| bundle exec unicorn_rails -D -E $RAILS_ENV -c config/unicorn.rb && echo "process started." |
This file contains hidden or 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
| " First, install thinca/vim-quickrun | |
| " | |
| " https://github.com/thinca/vim-quickrun | |
| " | |
| " Then write some vimrc: | |
| " |
This file contains hidden or 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
| sshAgentFind() { | |
| # Ref https://github.com/wwalker/ssh-find-agent | |
| local -a sockets | |
| if [[ -z "$SSH_AUTH_SOCK" ]] ; then | |
| sockets=("${(@f)$(find /tmp/ -type s -path '/tmp/ssh-*/agent.*' -user $USER)}") | |
| for socket in $sockets; do | |
| SSH_AUTH_SOCK=$socket ssh-add -l 2> /dev/null > /dev/null | |
| if [[ $? -eq 0 ]]; then | |
| export SSH_AUTH_SOCK=$socket |
This file contains hidden or 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
| #!/bin/bash | |
| if which apt-get 2>&1 >/dev/null; then | |
| sudo apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev | |
| fi | |
| cd ~/src | |
| [[ ! -d git ]] && git clone https://github.com/git/git --depth 10 |
This file contains hidden or 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
| #!/bin/bash | |
| if which apt-get 2>&1 >/dev/null; then | |
| [[ -z $(dpkg --get-selections | grep libncursesw5-dev) ]] && sudo apt-get install -y libncursesw5-dev | |
| elif which brew 2>&1 >/dev/null; then | |
| brew install tig --with-docs | |
| exit | |
| fi | |