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
"""Allows checking of form POST data as well as uploaded files when validating | |
a standard Django `forms.Form`. | |
The short version is that you check `Form().files` in the `clean()` method, | |
assuming the form has been bound to the request. | |
See: | |
http://mattoc.com/django-handle-form-validation-with-combined-post-and-files-data/ | |
""" |
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
" I like having line numbers on, but don't want to wrap lines in a | |
" standard-sized terminal window. | |
fun! WinSizeAutoNumber() | |
if winwidth(0) > 84 | |
set number | |
else | |
set nonumber | |
endif | |
endfunction |
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
# http://www.deadman.org/sshscreen.php | |
# Use this when on your remote machine, before you reattach a screen session | |
alias scratch='$HOME/bin/grabssh; screen -d -R' | |
# Use this in a screen session on your remote machine when you need agent forwarding | |
alias fixssh='source $HOME/bin/fixssh' |