##Ranger ####Moving around
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
def check_dependencies | |
msg = {} | |
self.class.reflect_on_all_associations.map{|e| e.name}.each do |assoc| | |
dependency_size = self.send(assoc).size rescue next | |
msg[assoc] = dependency_size if dependency_size > 0 | |
end | |
unless msg.empty? | |
linked_objects = "#{msg.map{|k,v| "#{k} #{v}"}.join(", ")}" | |
errors.add :base, %{The #{self.class} could not be deleted because it is used by | |
#{linked_objects} } |
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 . -type f -printf '%p:\n - %u\n - %s\n - %T+\n' > files.yml |
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
xterm*VT100*geometry: 94x28 | |
xterm*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1 | |
xterm*background: grey | |
xterm*foreground: lightblue | |
xterm*loginShell: true | |
xterm*scrollBar: true | |
xterm*rightScrollBar: true | |
xterm*title: XTerm | |
xterm*iconName: XTerm | |
xterm*saveLines: 50000 |
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
# ~/.tmux.conf | |
########################################################################### | |
# Change prefix from default (^B) to ^G | |
# ^G doesn't interfere with emacs-style editing keys | |
unbind -n ^B | |
#unbind -n ^G | |
set -g prefix ^@ |
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
"Install | |
"mkdir ~/.vim/tmp/backup | |
"mkdir ~/.vim/tmp/swap | |
"git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
" | |
"For vim with lua see http://winter233.com/Using-Vim-with-Neocomplete/ | |
" | |
set nocompatible | |
filetype off |